laptop_mode tries to check file on /proc which doesn't exist

Bug #195130 reported by Thomas Novin
2
Affects Status Importance Assigned to Milestone
laptop-mode-tools (Ubuntu)
Invalid
Undecided
Tormod Volden

Bug Description

Binary package hint: laptop-mode-tools

When I boot my computer I see that laptop_mode tries to access something in /proc which doesn't exist:

/usr/sbin/laptop_mode: line 1555: /proc/acpi/video/VID/LCD/brightness: No such file or directory

Instead I found this file:

/proc/acpi/video/C136/C144$ cat brightness
levels: 100 51 30 37 44 51 58 65 72 79 86 93 100
current: 0

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"

$ dpkg -l | grep laptop-mode-tools
ii laptop-mode-tools 1.35-1ubuntu1 Scripts to spin down hard drive and save pow

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Can you please attach your /etc/laptop-mode/laptop-mode.conf and also the contents of /var/run/laptop-mode-tools/state-brightness-command if it exists?

Changed in laptop-mode-tools:
assignee: nobody → tormodvolden
status: New → Incomplete
Revision history for this message
Thomas Novin (thomasn80) wrote :

$ cat /var/run/laptop-mode-tools/state-brightness-command
echo [value]

I'm attaching the file to this comment. I found in the file that it is pointing to that file:

479: BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD/brightness"

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Thanks. You edited laptop-mode.conf yourself, right? If you edit it, you're supposed to replace VID and LCD by your values C136 and C144 and for the echo <value> replace with an valid value, i.e.: echo 37

Revision history for this message
Thomas Novin (thomasn80) wrote :

Yes I have edited it. Since this wasn't a bug I'm changing to Invalid.

Changed in laptop-mode-tools:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.