SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So here is some output from my system. I don't even want to look at the screen so I am using ssh. Tried VNC but password doesnt work. That's my other thread.
Nothing found in /sys/class/brightness and any linking fails with Operation not permitted.
I don't want to have to reinstall slackware because I got all my settings from the VM and I've been wanting to do this for a long time. I had to use syslinux because this is an NVMe install, but worked great. Just trying to fix this brightness issue. None of my function keys work either
Do you mean they don't work at all? Or do they just work as the F-keys. e.g. F5 in Firefox to refresh the page.
Sometimes to get these to work they need to be enabled in the UEFI settings. When your laptop boots it hopefully will show (briefly) something like "Press F12 to enter setup menu"
The key might be Delete or F5 or Esc or...
Once in the UEFI settings look for something about Fn keys. On my laptop I could choose to have them work as Volume up, Volume down, Brightness up, Brightness down, etc when pressed, then as normal Function keys when the "Fn" modifier key is held.
Do you mean they don't work at all? Or do they just work as the F-keys. e.g. F5 in Firefox to refresh the page.
Sometimes to get these to work they need to be enabled in the UEFI settings. When your laptop boots it hopefully will show (briefly) something like "Press F12 to enter setup menu"
The key might be Delete or F5 or Esc or...
Once in the UEFI settings look for something about Fn keys. On my laptop I could choose to have them work as Volume up, Volume down, Brightness up, Brightness down, etc when pressed, then as normal Function keys when the "Fn" modifier key is held.
Interesting. I disabled UEFI and went with Legacy Mode with CSM supported because I wanted a truly legacy system and nothing UEFI related but if it blocks me from dimming my screen than yeah I guess I'll have to re-do it all in UEFI.
The keys work on the laptop, I could get into BIOS but the function keys don't work in Slackware. They work if I install mint of course but I don't want to run that anymore.
Last edited by rootaccess; 12-19-2023 at 01:38 AM.
I don't *think* it should be anything to do with UEFI vs Legacy mode.
But in one of those menus where you chose Legacy mode hopefully you will find the "Function Keys" setting.
Quote:
Originally Posted by rootaccess
The keys work on the laptop, I could get into BIOS but the function keys don't work in Slackware. They work if I install mint of course but I don't want to run that anymore.
I'm still not exactly sure what you mean by "don't work".
Do you want them to work as F1, F2, etc like you would need in Midnight commander or htop?
Do you want them to control volume, brightness, etc like the little icons on the keys?
Do they do either at present?
What happens if you hold down the "Fn" key while you press them?
screen brightness adjustment (as well as audio volume) works natively on T450 X270 thinkpads with kde&xfce
on windows manager such as fluxbox xrandr adjusts the gamma,
if you can't get the software dirty solution working, you may have another issue somewhere.
--brightness brightness
Multiply the gamma values on the crtc currently attached to the
output to specified floating value. Useful for overly bright or
overly dim outputs. However, this is a software only modifica‐
tion, if your hardware has support to actually change the
brightness, you will probably prefer to use xbacklight.
Last edited by _peter; 12-19-2023 at 03:33 PM.
Reason: typo xrandr
The keys work on the laptop, I could get into BIOS but the function keys don't work in Slackware. They work if I install mint of course but I don't want to run that anymore.
These things require "WMI" modules from the Kernel. Probably it's called Thinkpad WMI or something similar. Is that loaded?
Perhaps dmesg will give you an indication:
Code:
dmesg | grep -i wmi
And lsmod:
Code:
lsmod | grep -i wmi
All the Kernel symbols can be found under "device drivers" --> "x86 plarform specific device drivers".. And looking at that, the "wmi" driver for Lenovo might be named something else than "wmi" probably "config_thinkpad_acpi"..
I don't *think* it should be anything to do with UEFI vs Legacy mode.
But in one of those menus where you chose Legacy mode hopefully you will find the "Function Keys" setting.
I'm still not exactly sure what you mean by "don't work".
Do you want them to work as F1, F2, etc like you would need in Midnight commander or htop?
Do you want them to control volume, brightness, etc like the little icons on the keys?
Do they do either at present?
What happens if you hold down the "Fn" key while you press them?
Are you using XFCE or KDE or ?
Im using XFCE. I want the keys to work but even if they didn't, I still want to be able to control my brightness with xbacklight or other command line utilities. If I hold Fn down nothing happens but in a terminal, I just get a bunch of '~'
These things require "WMI" modules from the Kernel. Probably it's called Thinkpad WMI or something similar. Is that loaded?
Perhaps dmesg will give you an indication:
Code:
dmesg | grep -i wmi
And lsmod:
Code:
lsmod | grep -i wmi
All the Kernel symbols can be found under "device drivers" --> "x86 plarform specific device drivers".. And looking at that, the "wmi" driver for Lenovo might be named something else than "wmi" probably "config_thinkpad_acpi"..
I ended up re-installing which is a huge blow but I guess it isn't smart to convert from a VM because the VM was probably not installed with some stuff that the installer probably does automatically even thought I selected everything except XFCE (i manually installed tales-xfce repo even on this). I thought I had it covered when i did
Code:
mkinitrd
after i copied everything over which I would expect would detect settings from a laptop when making a new initrd.gz but I guess not. With this new install, the
Code:
find /sys -type f -name brightness
ended up being what the poster on the ubuntu forum suggested. The only thing that worked was
creating /etc/X11/xorg.conf which didn't even exist with the following and rebooted
Hmm, ok, that could probably be right, not sure since it's not working. Wmi_bmof has a rather bad description in the Kernel, described as "tedious" and requiring userspace tools. That could be the reason perhaps, missing userspace tools.
What happens if you do this:
Code:
modprobe thinkpad_acpi
And if nothing improves, you could additionally try:
Code:
modprobe -r wmi_bmof
And if that does nothing, also:
Code:
modprobe -r think_lmi
According to the Kernel documentation thinkpad_acpi is suppose to be the one that controls the so called "fn" key and those things. Perhaps it's already loaded?
Code:
lsmod | grep -i thinkpad
think_lmi is the "wmi" part and works on "machines that support these things in the bios".. <-- this might be where the wmi_bmof comes in, it's..
It's difficult to say what your machine should use, and even the Kernel can load these things incorrectly once in awhile. You could try different combinations of these things.
https://github.com/iksaif/thinkpad-wmi
According to this page, if you use a bios password, you should disable it to test if these things works without. Otherwise you have to include a password with WMI requests to the bios.
it bothers me that i supposedly install everything in the system and don't get xbacklight working (nevermind the xfce because i am using gtk-2.0 but even on the new install i did the same thing, did not install anything in /xfce, then used the tales-repo from solarfields and got my xbacklight working). i used to do these types of system transfers on 14.1 where I setup my own partitions, and just tar everything over netcat and just modify /etc/fstab. this is why i wanted to move back to slackware as my daily driver.
the output from sys backlight differed when i made the transfer from the VM. it was not the same before. if I am loading this super bloated huge kernel, what business does it have to not install that if it's a VM environment. I bet that is in the install script somewhere slackware has. If its huge, put everything in there including laptop power tools even if its a VM dammit. I can recompile my own damn kernel, ive done it a million times and my own initrd (although i do like mkinitrd on slackware, just makes it easier for that purpose alone.) i heard lilo doesn't work on nvme so i was prepared and didn't bother. i was in a chroot environment, created a syslinux.cfg and wrote it to nvme0n1 using extlinux and dd'd the syslinux mbr.bin at bs=440 count=1 over that and it booted like a charm without lilo, no images, none of that. however, funny thing is on the new install, i did run lilo just to see if it would work and it does.
i'm just upset about stuff that's potentially hidden in the slackware install and being selective even with a huge kernel. not only did i waste a lot of time but now i dont get that sense of accomplishment from doing something challenging.... and the reason i do it this way is because i'm not going to sit there like an idiot and reinstall the system, compile all my software and rebuild my entire system, modify all my settings, directories, all my files, etc when i can automate it like i did. i think im good for now being able to mirror this setup because its coming from a laptop now so if it was another laptop, i would have the xbacklight working and if its a VM that i want to mirror this machine into, i wouldn't care.
Last edited by rootaccess; 12-19-2023 at 02:55 PM.
the output from sys backlight differed when i made the transfer from the VM. it was not the same before. if I am loading this super bloated huge kernel, what business does it have to not install that if it's a VM environment. I bet that is in the install script somewhere slackware has. If its huge, put everything in there including laptop power tools even if its a VM dammit.
Well, that is one of the advantages of Linux, you can take the system with the Kernel and move it pretty much anywhere, and it will adapt and work in the new environment. Preferably this is done with the generic Kernel, rather than huge.
Technically, there is nothing that should prevent that VM carryover to the machine. Obviously something is, but it should be possible to make it work. Perhaps test out making a new initrd for the VM carryover Kernel?
So, the new output is the same as the old, that's a bit strange. And I doubt it's anything special Slackware has, it tends to be pretty slim on that front, but it could be worth spending some time browsing /etc.
Well, that is one of the advantages of Linux, you can take the system with the Kernel and move it pretty much anywhere, and it will adapt and work in the new environment. Preferably this is done with the generic Kernel, rather than huge.
Technically, there is nothing that should prevent that VM carryover to the machine. Obviously something is, but it should be possible to make it work. Perhaps test out making a new initrd for the VM carryover Kernel?
So, the new output is the same as the old, that's a bit strange. And I doubt it's anything special Slackware has, it tends to be pretty slim on that front, but it could be worth spending some time browsing /etc.
Yes I'll have to look into it more I guess. I am intending to rebuild the kernel anyway but so far I'm happy with everything else. Pretty sure if I were to transfer the laptop to another one, I wouldn't have any issues. But it was real nice to see it boot up after all that I did, including bypassing lilo (I had thought lilo is incompatible with NVMe's but my VM was sda and this laptop is an nvme0n1).
Going to tar up the entire system to a 15g file since that's my root system now besides /home. You just never know when your system might die or your hard drive fails. I had an NVMe fail last year with all my VMs on it. It was a 1TB samsung 970 EVO. Took me 4 days just to get to baseline, had to restore all the VMs I was using which was Windows and a lot of software installation in there so that took up a ton of time. Now I have separate backups for VMs and multiple backups of my system. I had backups of my data so that wasn't a problem but the objective here is to a be able to re-create my entire system at the snap of my finger and just copy over my data in case my systems either die or get stolen lol.
Going to tar up the entire system to a 15g file since that's my root system now besides /home. You just never know when your system might die or your hard drive fails. I had an NVMe fail last year with all my VMs on it. It was a 1TB samsung 970 EVO. Took me 4 days just to get to baseline, had to restore all the VMs I was using which was Windows and a lot of software installation in there so that took up a ton of time. Now I have separate backups for VMs and multiple backups of my system. I had backups of my data so that wasn't a problem but the objective here is to a be able to re-create my entire system at the snap of my finger and just copy over my data in case my systems either die or get stolen lol.
It sounds like an interesting way to do things. I've personally moved to VM's for most internet use, and I intend to expand on that. But those are mostly disposable and I keep a base image. Aside from that, my regular root partition and so fourth, I have a system there, but only backups for emergency. Nothing like an easy to deploy way if things get really messed up somehow.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.