On 07/14/2014 04:09 PM, David C. Rankin wrote:
On 07/14/2014 03:23 PM, auxsvr@gmail.com wrote:
On Monday 14 of July 2014 11:35:51 David C. Rankin wrote:
One new issue I have with 13.1 is my Toshiba laptop brightness is stuck on high (really high) and I cannot adjust it with the normal function keys. Now it is just stuck. I can pop the 11.4 drive back in and it works fine. What could be causing this? Moreover, what could be the fix? Could you try setting the value in/sys/class/backlight/*/brightness to see whether the keys are registered to set the brightness level or not? For example, on my computer
echo 100 > /sys/class/backlight/intel_backlight/brightness
reduces backlight to low level and
cat /sys/class/backlight/intel_backlight/brightness_max
yields the maximum. If this works, probably some kernel module or special setting is required for the kernel to handle the special keys.
Hmm..,
Now we are getting somewhere. This is interesting:
$ ll /sys/class/backlight/ total 0 lrwxrwxrwx 1 root root 0 Jul 14 15:34 acpi_video0 -> ../../devices/pci0000:00/0000:00:01.0/0000:01:05.0/backlight/acpi_video0 lrwxrwxrwx 1 root root 0 Jul 14 15:34 radeon_bl0 -> ../../devices/pci0000:00/0000:00:01.0/0000:01:05.0/drm/card0/card0-LVDS-1/radeon_bl0
<snip>
Judging from the values, /sys/class/backlight/acpi_video0/brightness is the correct one and a value of 7 is the brightest of the 8 steps [0-8]. Testing:
# for i in `seq 0 7`; do echo $i > /sys/class/backlight/acpi_video0/brightness; sleep 1; done
Steps perfectly through all 8 levels of brightness. How do we get the fn keys to work properly?
Ugly temporary hack: #!/bin/bash test -n "$1" || { printf "error insufficient input, usage %s int [0-7] (screen brightness)\n" "${0//*\//}" exit 1 } test "$1" -ge 0 && test "$1" -lt 8 || { printf "error invalid argument, usage %s int [0-7] (screen brightness)\n" "${0//*\//}" exit 1 } if test "$UID" -eq 0 ; then echo $1 > /sys/class/backlight/acpi_video0/brightness else sudo bash -c "echo $1 > /sys/class/backlight/acpi_video0/brightness" fi exit 0 -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org