Dapper Flight4: detected HW component string erroneosly used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acpi-support (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
when I add a "set -x" to sleep.sh, I find that dmidecode finds my system to be an acer system, but it uses a string with a lot of spaces in a command after detection:
Manually running the problematic command here gives me the following:
# echo foo--`sudo dmidecode --string system-
foo--Acer --bar
(the foo--*--bar is to show spaces, there is once space after Acer)
It will not match with either of the related config files in /usr/share/
Acer.config
Acer, inc..config
I'm not sure wether it would match '/usr/share/
Here is the full output of sleep.sh:
erik@acerik:~$ sudo /etc/acpi/sleep.sh
+ . /etc/default/
++ ACPI_HIBERNATE=true
++ ACPI_SLEEP_MODE=mem
++ MODULES=
++ MODULES_WHITELIST=
++ SAVE_VBE_STATE=true
++ VBESTATE=
++ POST_VIDEO=true
++ USE_DPMS=true
++ HIBERNATE_
++ LOCK_SCREEN=true
++ STOP_SERVICES=
++ RESTART_IRDA=false
++ ENABLE_
+ . /usr/share/
++ umask 022
++ PATH=/usr/
++ POWERSTATE=
++ LAPTOP_
++ HDPARM=
++ LIDSTATE=
+ . /usr/share/
+ . /usr/share/
+ DeviceConfig
++ dmidecode --string system-manufacturer
+ manufacturer='Acer '
++ dmidecode --string system-product-name
+ model='TravelMate 4650 '
++ dmidecode --string system-version
+ version=' '
+ '[' -f '/usr/share/
+ '[' x '!=' xtrue ']'
+ '[' x '!=' xforce ']'
+ exit
EOF
My suggestion is to 'trim' spaces from the detected strings.
Please tell me if I can report bugs more effectively. I haven't done it often (enough)...
Changed in acpi-support: | |
status: | In Progress → Fix Released |
Hello Erik,
Could you test the following package and see if that fixes things for you: www.paul. sladen. org/ubuntu/ upload/ acpi-support_ 0.59trailingspa ces1_i386. deb
http://
this adds:
sed -e 's/ *$//'
after each of the 'dmidecode' fetches.