Bug 1216 - Latitude E6510 doesn't power off
Summary: Latitude E6510 doesn't power off
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-08 19:31 CEST by Sander Lepik
Modified: 2011-05-09 21:10 CEST (History)
2 users (show)

See Also:
Source RPM: initscripts
CVE:
Status comment:


Attachments
last /var/log/dmesg (46.11 KB, text/plain)
2011-05-08 19:36 CEST, Sander Lepik
Details
dmidecode (19.35 KB, text/plain)
2011-05-08 19:38 CEST, Sander Lepik
Details
replace LANG with LC_ALL as sed won't work correctly without it (1.61 KB, patch)
2011-05-09 12:27 CEST, Sander Lepik
Details | Diff

Description Sander Lepik 2011-05-08 19:31:19 CEST
Description of problem:
My laptop doesn't power off nor does it reboot. It just stalls when it should send the signal.


Version-Release number of selected component (if applicable):
kernel-desktop-2.6.38.5-1.mga-1-1.mga1
acpi-1.5-2.mga1
acpid-2.0.9-1.mga1


How reproducible:
every time

Steps to Reproduce:
1. try to reboot or shut down the laptop.
2.
3.
Comment 1 Sander Lepik 2011-05-08 19:36:33 CEST
Created attachment 367 [details]
last /var/log/dmesg
Comment 2 Sander Lepik 2011-05-08 19:38:33 CEST
Created attachment 368 [details]
dmidecode
Comment 3 Lucien XU 2011-05-08 20:40:37 CEST
Same problem with E6400 here.
There is a thread in the forum : https://forums.mageia.org/en/viewtopic.php?f=15&t=165

Is your bug reproductible every time ? My laptop sometimes shutdown, even if most of the time it does not.

Did you tried to flash your bios to a newer version ?

CC: (none) => sfietkonstantin

Comment 4 Thomas Backlund 2011-05-08 20:57:39 CEST
Does it help if you add 

acpi_osi=Linux

to the kernel command line and reboot
Comment 5 Sander Lepik 2011-05-08 22:10:56 CEST
Sadly no help from that one.

(In reply to comment #3)
> Same problem with E6400 here.
> There is a thread in the forum :
> https://forums.mageia.org/en/viewtopic.php?f=15&t=165
> 
> Is your bug reproductible every time ? My laptop sometimes shutdown, even if
> most of the time it does not.
> 
> Did you tried to flash your bios to a newer version ?

As said in report, it happens every time :(

I have no idea how to flash it safely as there is no bootable iso from Dell and i don't have Windows.
Comment 6 Thomas Backlund 2011-05-08 22:23:43 CEST
(In reply to comment #5)
> Sadly no help from that one.
> 

Did you try to reboot again after kernel had been booted with that option ?

can you provide /var/log/dmesg from whe you have booted with that option added
Comment 7 Sander Lepik 2011-05-08 23:43:44 CEST
(In reply to comment #3)
> Same problem with E6400 here.
> There is a thread in the forum :
> https://forums.mageia.org/en/viewtopic.php?f=15&t=165
> 
> Is your bug reproductible every time ? My laptop sometimes shutdown, even if
> most of the time it does not.
> 
> Did you tried to flash your bios to a newer version ?

I have solved my problem (and my friend confirmed on his E4300; he has Broadcom's wifi, i have Intel's).

If you open /etc/init.d/network and edit line 269 like this:

(. ./ifcfg-$i    ->    (. ./$i

Does it change anything for you?
Juergen Harms 2011-05-09 08:23:03 CEST

CC: (none) => juergen.harms

Comment 8 Sander Lepik 2011-05-09 12:27:55 CEST
Created attachment 370 [details]
replace LANG with LC_ALL as sed won't work correctly without it

With the help from #mageia-dev i've come up with a patch for initscripts. This should be the correct way to fix network scripts. Removing "ifcfg-" was just a temporary hack.
Thomas Backlund 2011-05-09 12:29:21 CEST

Hardware: x86_64 => All
Source RPM: (none) => initscripts

Comment 9 Thomas Backlund 2011-05-09 12:29:53 CEST
Have you confirmed it works on your system ?
Comment 10 Sander Lepik 2011-05-09 12:45:22 CEST
(In reply to comment #9)
> Have you confirmed it works on your system ?

My friend confirmed on his system. My laptop is at home but i ran the following scripts (as suggested @ irc) over ssh to confirm that it has effect:


# \ls ifcfg* |             LANG=C sed -e "$__sed_discard_ignored_files"                        -e '/\(ifcfg-lo\|:\|ifcfg-.*-range\)/d'                        -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' |             LANG=C sort -k 1,1 -k 2n |             LANG=C sed 's/ //'
ifcfg-eth2


vs



# \ls ifcfg* |             LC_ALL=C sed -e "$__sed_discard_ignored_files"                        -e '/\(ifcfg-lo\|:\|ifcfg-.*-range\)/d'                        -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' |             LC_ALL=C sort -k 1,1 -k 2n |             LC_ALL=C sed 's/ //'
eth2
Comment 11 Sander Lepik 2011-05-09 20:13:16 CEST
Works very well for my own laptop too.

I hope it gets in before RC freeze.
Comment 12 Thomas Backlund 2011-05-09 21:10:26 CEST
Thanks for the report, tests and the patch

fixed in initscripts-9.21-9.mga1

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.