WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: cannot run laptop-mode-tools  (Read 2845 times)

Offline vivi-d

  • Newbie
  • *
  • Posts: 4
cannot run laptop-mode-tools
« on: June 12, 2017, 04:17:45 PM »
Hello, I really love tinycore. It's has everything I need except for one small thing... I can't increase the brightness of my LCD screen. My laptop is an HP 8460p with an intel video card.

I've loaded the app laptop-mode-tools. However, when I try to run it, I get this error:
Unhandled kernel version: 3.0 ('uname -r' = '3.0.21-tinycore')

Is there some workaround I could use? Anything would help. Thanks!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: cannot run laptop-mode-tools
« Reply #1 on: June 12, 2017, 04:59:01 PM »
Hi vivi-d
Which version of Tinycore are you running? 3.0.21 is from TC4.

Offline vivi-d

  • Newbie
  • *
  • Posts: 4
Re: cannot run laptop-mode-tools
« Reply #2 on: June 12, 2017, 05:51:33 PM »
Hi, actually I believe it's CorePlus. The md5sum of the iso is bc3680d7d5efa23886205129740001a2

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: cannot run laptop-mode-tools
« Reply #3 on: June 13, 2017, 01:24:42 AM »
I guess you need to modify /usr/local/sbin/laptop_mode to read something like this:
Code: [Select]
case "$KLEVEL" in
"2.4" ) ;;
"2.6" ) ;;
"3.0" ) ;;
"3.8" ) ;;
"3.16" ) ;;
"4.2" ) ;;
"4.8" ) ;;
*)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: cannot run laptop-mode-tools
« Reply #4 on: June 13, 2017, 07:35:18 AM »
Hi vivi-d
Hi, actually I believe it's CorePlus. The md5sum of the iso is bc3680d7d5efa23886205129740001a2
That's version 4.7.7. I'm surprised that bug was not noticed until now.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: cannot run laptop-mode-tools
« Reply #5 on: June 14, 2017, 01:52:13 AM »
laptop-mode-tools adjusted and reposted in tc-4.x x86 repo

Offline vivi-d

  • Newbie
  • *
  • Posts: 4
Re: cannot run laptop-mode-tools
« Reply #6 on: June 14, 2017, 05:48:55 PM »
Thanks for fixing that. I can install laptop-mode-tools now (after installing udev-lib). I still can't change the brightness of my screen. When I look at dmesg I see 'Unknown key pressed e017'. How do I translate these function keys to the commands to brighten the display?  :o

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: cannot run laptop-mode-tools
« Reply #7 on: June 15, 2017, 12:44:18 AM »
Is there a kernel module for this for you machine?

What does this give:
Code: [Select]
$ ls /sys/class/backlight
You might need something analagous to this:
Code: [Select]
$ cat /usr/local/share/X11/xorg.conf.d/20-intel.conf

Section "Device"
        Identifier  "card0"
        Driver      "intel"
        Option      "Backlight"  "intel_backlight"
        BusID       "PCI:0:2:0"
EndSection

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: cannot run laptop-mode-tools
« Reply #8 on: June 15, 2017, 04:05:16 AM »
I played around a little with this without laptop-mode-tools in tc-8.x

With my dell e7240, the keyboard button for the keyboard backlight works, but the keyboard button for the screen backlight does not.

Using the Xorg vesa driver:
Code: [Select]
$ lsmod
Module                  Size  Used by    Not tainted
...
video                  28672  0
backlight              12288  1 video
...
dell_rbtn              12288  0
...
ac                     12288  0
battery                16384  0

$ ls /sys/class/backlight
[nothing]

Using the Xorg modesetting driver:
Code: [Select]
$ tce-load -i graphics-KERNEL
$ lsmod
Module                  Size  Used by    Not tainted
..
video                  28672  1 i915
backlight              12288  2 i915,video
...
dell_rbtn              12288  0
...
ac                     12288  0
battery                16384  0

$ ls /sys/class/backlight
intel_backlight

$ ls /sys/class/backlight/intel_backlight
actual_brightness  brightness         max_brightness     subsystem          uevent
bl_power           device             power/             type

Using the Xorg intel driver:
Code: [Select]
$ tce-load -i xf86-video-intel
$ cat /usr/local/share/X11/xorg.conf.d/20-intel.conf
Section "Device"
        Identifier      "card0"
        Driver  "intel"
        Option  "backlight" "intel_backlight"
        BusID   "PCI:0:2:0"
EndSection

$ grep back /var/log/Xorg.0.log
[  3862.009] (**) intel(0): Option "Backlight" "intel_backlight"
[  3862.009] (**) intel(0): Found backlight control interface intel_backlight (type 'raw') for output eDP1

# echo 500 > /sys/class/backlight/intel_backlight/brightness
[works]
[keyboard buttons for screen backlight do not work]

Offline vivi-d

  • Newbie
  • *
  • Posts: 4
Re: cannot run laptop-mode-tools
« Reply #9 on: June 16, 2017, 10:42:56 AM »
I installed the xf86-video-intel package, but then my screen became all garbled. I think I may need to update my BIOS. It's using a much older version than what is available on HP's site. Unfortunately, I will need to get a hard drive first and install some kind of windows on it. It may take a week or more before I can experiment further... but I really do appreciate your help :)