I have just installed 13.1-RELEASE on a thinkpad x1 yoga g3 - I have setup X (i dont have it starting automatically), power saving (using intel speed shift), suspend on closing the lid, resume works reliably too. So far so good.
FreeBSD has come a LONG way for use on Laptops since the last time I installed and used it (1998-2001), Ive been stuck with Windows and MS Word due to work for the last 18 years, even so it was fairly strait-forward getting to this point.
I am having difficulty getting screen brightness working, so far i have tried using acpi_ibm and acpi_video. I tried having both activated, pressing f5 (labeled brightness down) either increased the brightness or put the screen backlight on, the same thing happens if I boot while connected to power, if I disconnect the screen gets much brighter (not sure if the machine actually has a backlight) reconnecting dosent change anything. I think acpi_ibm and acpi_video both do the same job so commented out acpi_video.
Going back to just acpi_ibm (confirmed to be running with kldstat) I ran the below to get the input of the F keys when pressed (I added the comments myself):
I get no input when pressing F1-4, according to lenovo docs they should be:
F1: Mutes and unmutes audio
F2: Lowers speaker volume
F3: Increase speaker volume
F4: Mutes and unmutes the microphone
Also, I have had an intermittent problem with the arrow keys, more often than not they don't work and result in a beep, so when using /dev.pipe as above I tested those; up and left did not get a response, while down got ^[[B and right got ^[[C
I have had another thing happening that sometimes interrupts the boot menu, and continues through the boot process - ^[[D repeatedly appears (also on resume after being suspended), i thought maybe it was Esc or something but suspect its left or up, any ideas what to do here?
Back to the Fn brightness keys, I wanted to find what to map to the Fn keys to, after a bit of looking around I found and ran:
Using sysctl, changing the value of hw.i915kms.invert_brightness, compat.linux.i915_invert_brightness or dev.acpi_ibm.0.lcd_brightness isn't allowed (run as normal user), it says its a read only tunable and tunable values are set in /boot/loader.conf
However, changing the value of dev.acpi_ibm.0.lcd_brightness as root is allowed but does not change brightness, although I get a message that the value should be bttween 0-5 - setting to say 2 does not change brightness.
How can I figure out how to control the brightness? Once I have done that I would like to map the controls to the f5/6 keys (maybe vol+/-to f7/8 also), any advice on that would also be appreciated.
Many thanks!
FreeBSD has come a LONG way for use on Laptops since the last time I installed and used it (1998-2001), Ive been stuck with Windows and MS Word due to work for the last 18 years, even so it was fairly strait-forward getting to this point.
I am having difficulty getting screen brightness working, so far i have tried using acpi_ibm and acpi_video. I tried having both activated, pressing f5 (labeled brightness down) either increased the brightness or put the screen backlight on, the same thing happens if I boot while connected to power, if I disconnect the screen gets much brighter (not sure if the machine actually has a backlight) reconnecting dosent change anything. I think acpi_ibm and acpi_video both do the same job so commented out acpi_video.
Going back to just acpi_ibm (confirmed to be running with kldstat) I ran the below to get the input of the F keys when pressed (I added the comments myself):
Code:
cat /var/run/devd.pipe
!system=ACPI subsystem=IBM type=\_SB_.PCI0.LPCB.EC__.HKEY notify=0x11 //f5 - Lowers screen brightness
!system=ACPI subsystem=IBM type=\_SB_.PCI0.LPCB.EC__.HKEY notify=0x10 //f6 - Increase screen brightness
!system=ACPI subsystem=IBM type=\_SB_.PCI0.LPCB.EC__.HKEY notify=0x07 //f7 - Access options to manage the external display - prob windows specific
!system=ACPI subsystem=IBM type=\_SB_.PCI0.LPCB.EC__.HKEY notify=0x05 //f8 - Airplane Mode on/off
!system=ACPI subsystem=IBM type=\_SB_.PCI0.LPCB.EC__.HKEY notify=0x1d //f9 - Access computer settings - windows specific
!system=ACPI subsystem=IBM type=\_SB_.PCI0.LPCB.EC__.HKEY notify=0x14 //f10 - Bluetooth on/off - i have this disabled in bios
!system=ACPI subsystem=IBM type=\_SB_.PCI0.LPCB.EC__.HKEY notify=0x05 //f15 - Keyboard settings - windows specific?
!system=ACPI subsystem=IBM type=\_SB_.PCI0.LPCB.EC__.HKEY notify=0x11 //f12 - User defined Function
I get no input when pressing F1-4, according to lenovo docs they should be:
F1: Mutes and unmutes audio
F2: Lowers speaker volume
F3: Increase speaker volume
F4: Mutes and unmutes the microphone
Also, I have had an intermittent problem with the arrow keys, more often than not they don't work and result in a beep, so when using /dev.pipe as above I tested those; up and left did not get a response, while down got ^[[B and right got ^[[C
I have had another thing happening that sometimes interrupts the boot menu, and continues through the boot process - ^[[D repeatedly appears (also on resume after being suspended), i thought maybe it was Esc or something but suspect its left or up, any ideas what to do here?
Back to the Fn brightness keys, I wanted to find what to map to the Fn keys to, after a bit of looking around I found and ran:
Code:
sysctl -a | grep bright
hw.i915kms.invert_brightness: 0
dev.acpi_ibm.0.lcd_brightness: 0
compat.linuxkpi.915_invert_brightness: 0
Using sysctl, changing the value of hw.i915kms.invert_brightness, compat.linux.i915_invert_brightness or dev.acpi_ibm.0.lcd_brightness isn't allowed (run as normal user), it says its a read only tunable and tunable values are set in /boot/loader.conf
However, changing the value of dev.acpi_ibm.0.lcd_brightness as root is allowed but does not change brightness, although I get a message that the value should be bttween 0-5 - setting to say 2 does not change brightness.
How can I figure out how to control the brightness? Once I have done that I would like to map the controls to the f5/6 keys (maybe vol+/-to f7/8 also), any advice on that would also be appreciated.
Many thanks!