Bug 79271

Summary: power off problem in Dell 15-7537
Product: ACPI Reporter: ayaka (ayaka)
Component: Power-OffAssignee: Lan Tianyu (tianyu.lan)
Status: CLOSED DOCUMENTED    
Severity: normal CC: ayaka, tianyu.lan
Priority: P1    
Hardware: All   
OS: Linux   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=80881
Kernel Version: 3.14.8 Subsystem:
Regression: No Bisected commit-id:

Description ayaka 2014-06-30 14:42:01 UTC
I have a Dell 15-7537 laptop install fedora 20 with kernel 3.14.8. But I
can't power off my laptop using systemctl poweroff, I have tried openrc
in gentoo, it couldn't either. Once I let systemctl power off my laptop,
it will, but it actually do the reboot, I have to press power button on
laptop or type halt in grub2, but it will cause the other reboot, after
the second reboot, I could power off my laptop this time. But in the
Windows 8.1, I don't need to do that, just click power off it would
power off my laptop properly.
Comment 1 Lan Tianyu 2014-07-01 01:35:52 UTC
Could you try the following command to power off machine?

echo "o" > /proc/sysrq-trigger
Comment 2 ayaka 2014-07-01 03:24:06 UTC
(In reply to Lan Tianyu from comment #1)
> Could you try the following command to power off machine?
> 
> echo "o" > /proc/sysrq-trigger

it would works, it would shutdown the laptop at once. It won't reboot.
Comment 3 Lan Tianyu 2014-07-01 03:37:09 UTC
Reboot, you need to run echo "b" > /proc/sysrq-triiger.
Comment 4 ayaka 2014-07-01 03:53:16 UTC
(In reply to Lan Tianyu from comment #3)
> Reboot, you need to run echo "b" > /proc/sysrq-triiger.

yes I know. But this is not the point, if I use systemctl or openrc it won't be able to shutdown the computer it will cause a stranger reboot.
Comment 5 Lan Tianyu 2014-07-01 05:18:53 UTC
I am not sure why these commands can't work. But from kernel side, power off works normally.

Is this bug a regression?
Comment 6 Lan Tianyu 2014-07-01 05:25:42 UTC
How about "reboot -p"
Comment 7 ayaka 2014-07-01 12:08:53 UTC
(In reply to Lan Tianyu from comment #6)
> How about "reboot -p"

It will reboot the my laptop but not power off, it should switch off the power.
like echo "o" > /proc/sysrq-trigger, it will only turn off the power but not doing umount the rootfs or shutdown the services.
Maybe the bug caused by the other part, what shall I do to make sure which part has bug?
Comment 8 Lan Tianyu 2014-07-02 07:00:13 UTC
(In reply to ayaka from comment #7)
> (In reply to Lan Tianyu from comment #6)
> > How about "reboot -p"
> 
> It will reboot the my laptop but not power off, it should switch off the
> power.
> like echo "o" > /proc/sysrq-trigger, it will only turn off the power but not
> doing umount the rootfs or shutdown the services.
> Maybe the bug caused by the other part, what shall I do to make sure which
> part has bug?

Not familiar with the power off code in the user space. Could you try to apply a bug to user space?
Comment 9 ayaka 2014-07-04 01:43:28 UTC
(In reply to Lan Tianyu from comment #8)
> (In reply to ayaka from comment #7)
> > (In reply to Lan Tianyu from comment #6)
> > > How about "reboot -p"
> > 
> > It will reboot the my laptop but not power off, it should switch off the
> > power.
> > like echo "o" > /proc/sysrq-trigger, it will only turn off the power but
> not
> > doing umount the rootfs or shutdown the services.
> > Maybe the bug caused by the other part, what shall I do to make sure which
> > part has bug?
> 
> Not familiar with the power off code in the user space. Could you try to
> apply a bug to user space?
I see thank you, I will issue it to systemd and openrc.
Comment 10 Lan Tianyu 2014-07-04 01:58:33 UTC
Close this bug since no further steps can be done in the kernel side.