The officially official Devuan Forum!

You are not logged in.

#1 2023-04-18 00:11:30

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

[SOLVED][Daedalus] Laptop lid open/close issue

Hi folks,

I need help to troubleshoot this issue.

When the AC is uplugged closing and opening the lid causes the screen to become totally insensitive, I can move the mouse but I can't click anything.

If I g too the TTYs and I try to restart the lightdm(runit) through sudo service lightdm stop/start this command doesn't work, but killall lightdm does.

Suspending works, hibernate doesn't, I am not sure if the issue is always because the eMMC storage, by the way I haven't found any hints because I don't know where I actually should looking for.

 lsb_release -a && uname -a
No LSB modules are available.
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 5 (daedalus/ceres)
Release:	5
Codename:	daedalus ceres
Linux abook 6.1.0-7-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.20-1 (2023-03-19) x86_64 GNU/Linux
00:00.0 Host bridge: Intel Corporation Gemini Lake Host Bridge (rev 06)
00:00.1 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Dynamic Platform and Thermal Framework Processor Participant (rev 06)
00:00.3 System peripheral: Intel Corporation Celeron/Pentium Silver Processor Gaussian Mixture Model (rev 06)
00:02.0 VGA compatible controller: Intel Corporation GeminiLake [UHD Graphics 600] (rev 06)
00:0e.0 Audio device: Intel Corporation Celeron/Pentium Silver Processor High Definition Audio (rev 06)
00:0f.0 Communication controller: Intel Corporation Celeron/Pentium Silver Processor Trusted Execution Engine Interface (rev 06)
00:12.0 SATA controller: Intel Corporation Celeron/Pentium Silver Processor SATA Controller (rev 06)
00:13.0 PCI bridge: Intel Corporation Gemini Lake PCI Express Root Port (rev f6)
00:14.0 PCI bridge: Intel Corporation Gemini Lake PCI Express Root Port (rev f6)
00:15.0 USB controller: Intel Corporation Celeron/Pentium Silver Processor USB 3.0 xHCI Controller (rev 06)
00:17.0 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor I2C 4 (rev 06)
00:18.0 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Serial IO UART Host Controller (rev 06)
00:18.1 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Serial IO UART Host Controller (rev 06)
00:18.2 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Serial IO UART Host Controller (rev 06)
00:18.3 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Serial IO UART Host Controller (rev 06)
00:19.0 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Serial IO SPI Host Controller (rev 06)
00:19.1 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Serial IO SPI Host Controller (rev 06)
00:1c.0 SD Host controller: Intel Corporation Celeron/Pentium Silver Processor SDA Standard Compliant SD Host Controller (rev 06)
00:1f.0 ISA bridge: Intel Corporation Celeron/Pentium Silver Processor LPC Controller (rev 06)
00:1f.1 SMBus: Intel Corporation Celeron/Pentium Silver Processor Gaussian Mixture Model (rev 06)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
 lsblk
NAME                   MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINTS
mmcblk0                179:0    0 58.3G  0 disk  
├─mmcblk0p1            179:1    0  512M  0 part  /boot/efi
├─mmcblk0p2            179:2    0  488M  0 part  /boot
└─mmcblk0p3            179:3    0 57.3G  0 part  
  └─mmcblk0p3_crypt    254:0    0 57.3G  0 crypt 
    ├─abook--vg-root   254:1    0 56.3G  0 lvm   /
    └─abook--vg-swap_1 254:2    0  976M  0 lvm   [SWAP]
mmcblk0boot0           179:256  0    4M  1 disk  
mmcblk0boot1           179:512  0    4M  1 disk  

Thanks... 🙏

Last edited by Danielsan (2023-04-18 05:34:48)

Offline

#2 2023-04-18 05:21:26

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Re: [SOLVED][Daedalus] Laptop lid open/close issue

I found this but it is not very useful...

dmesg | grep -i freez
[  882.490917] Freezing user space processes
[  882.499928] Freezing user space processes completed (elapsed 0.009 seconds)
[  882.499940] Freezing remaining freezable tasks
[  882.501515] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[ 2841.976403] Freezing user space processes
[ 2841.978488] Freezing user space processes completed (elapsed 0.002 seconds)
[ 2841.978495] Freezing remaining freezable tasks
[ 2841.979459] Freezing remaining freezable tasks completed (elapsed 0.000 seconds)

Offline

#3 2023-04-18 05:38:39

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Re: [SOLVED][Daedalus] Laptop lid open/close issue

I found the solution here:

https://www.reddit.com/r/xubuntu/commen … &context=3

and here:

https://docs.xfce.org/xfce/xfce4-power- … er-manager

Long story-short: To have logind handle the lid open/close event

 
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -n -t bool -s true

Offline

#4 2023-04-23 10:30:59

czeekaj
Member
Registered: 2019-06-12
Posts: 154  

Re: [SOLVED][Daedalus] Laptop lid open/close issue

acpid might also help with passing events to acpi / the EC
It will help with power key I believe in a more minimal manner.
acpi also deals with lid closure.

Glad xfce4-power-manager works for you though.

Last edited by czeekaj (2023-04-23 10:31:19)

Offline

#5 2023-04-25 23:19:45

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Re: [SOLVED][Daedalus] Laptop lid open/close issue

czeekaj wrote:

acpid might also help with passing events to acpi / the EC
It will help with power key I believe in a more minimal manner.
acpi also deals with lid closure.

Glad xfce4-power-manager works for you though.

After some recent updates this trick stopped to work...

What did you mean with acpid? Is it something to install additionally?

Thanks... 🙏

Offline

#6 2023-05-12 05:46:42

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Re: [SOLVED][Daedalus] Laptop lid open/close issue

Well the issues is getting worst... 😩

I tested Debian on the same hardware, I bought to my daughter the same laptop and install Debian instead of Devuan, and it does not have issue whatsoever.

The problem is with Devuan and Runit, I guess. 🤔

To recap:

  • The XFCE4 settings logind workaround does not work anymore

  • I tried to edit logind.conf ignoring lid actions and did not work

  • I tried with acpid and acpi/acpi-support, both did not work

  • I tried disabling KMS, did not work

  • I tried the steps above with xserver-xorg-video-intel uninstalled, did not solve anything

  • I tried to general disable the lid botton, could not achieve it

So far the only things that works it is to manually suspend the laptop before to close the lid. If I forget to do so: if I am lucky I get the screen frozen but I can enter in another TTY and relaunch lightdm, I would point out that sudo service lightdm --fullrestart does not work, instead I have to use sudo killall lightdm and perhaps this is some how related; otherwise I get a striped black and white screen with a frozen keyboard and I have to type alt+print_screen reisub to force a reboot.

This is becoming problematic and I would really like to solve it issue, thanks. 🙏

Offline

#7 2023-05-12 23:58:54

Lorenzo
Member
Registered: 2020-03-03
Posts: 43  

Re: [SOLVED][Daedalus] Laptop lid open/close issue

Hi,

[ sorry I don't have the solution, just some things to check ]

are you using the runit-services package, or you have your own set of runscripts or none of the two? is lightdm a runit service or is run as sysvinit script by the sysv emulation at startup?

If I g too the TTYs and I try to restart the lightdm(runit) through sudo service lightdm stop/start

if you have lightdm as runit service the right command is

sv stop/start lightdm

or (for a full restart)

sv e lightdm

I tested Debian on the same hardware, I bought to my daughter the same laptop and install Debian instead of

just to be sure, Debian + systemd?

Anyway, my suggestion is to try to replace some xfce component with some other program and see if it works:

It may be the screensaver/locker that doesn't work, for example it freezes while it should draw the window for user/passwd to unlock the screen: what are you using as screensaver/locker?
I'm using xscreensaver and it works fine with elogind (despite launching a xscreensaver-systemd), but I'm using Debian+ lxqt + runit and I'm not sure if it's lxqt-powermanagment that does the magic

another thing is to try to stop completely/kill the xfce4-power-manager daemon before closing the lid and see if elogind can handle the job;  try with elogind + xscreensaver, not sure if xfce-screensaver will work without the xfce4-power-manager

Lorenzo

OT: by any chance are you the same Danielsan of the "Debianizzati" italian forum?

Offline

#8 2023-05-13 03:07:45

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Re: [SOLVED][Daedalus] Laptop lid open/close issue

Ciao Lorenzo, yes I am exactly him...

I ran all my tests also without xfce4-power-setting enabled, but I still got the striped screen...  😖

Offline

#9 2023-05-13 10:37:45

Lorenzo
Member
Registered: 2020-03-03
Posts: 43  

Re: [SOLVED][Daedalus] Laptop lid open/close issue

I ran all my tests also without xfce4-power-setting enabled, but I still got the striped screen

what about replacing xfce4-screensaver package with xscreensaver?

yes I am exactly him...

Ha! I remember you! I used to be on that forum too (Ombra) years ago, nice to meet you again smile

Last edited by Lorenzo (2023-05-13 10:41:47)

Offline

#10 2023-05-14 06:00:56

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Re: [SOLVED][Daedalus] Laptop lid open/close issue

Lorenzo wrote:

I ran all my tests also without xfce4-power-setting enabled, but I still got the striped screen

what about replacing xfce4-screensaver package with xscreensaver?

yes I am exactly him...

Ha! I remember you! I used to be on that forum too (Ombra) years ago, nice to meet you again smile

Cool! These days I am bouncing between Devuan, Debian, FreeBSD and OpenBSD...

Anyway xfce4-screensaver is actually missing on the repo... perhaps is too thigh with systemd...

Offline

#11 2023-05-15 06:51:19

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Re: [SOLVED][Daedalus] Laptop lid open/close issue

I compiled and installed xfce4-screensaver from git, the situation didn't change... 😖

Offline

#12 2023-05-19 23:20:24

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Re: [SOLVED][Daedalus] Laptop lid open/close issue

I came back to Debian to troubleshoot it...

On Debian I used this method:

http://portal.mozz.us/gemini/omg.pebcak … ian-12.gmi

It looks enough reliable, I'll test it for a week and I'll try to adapt it to Devuan, and stick with it. 🤞

Offline

#13 2023-05-31 20:25:58

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Re: [SOLVED][Daedalus] Laptop lid open/close issue

I definitely solved it:

http://portal.mozz.us/gemini/omg.pebcak … vuan-5.gmi

So I am now again on Devuan! 🙏

Offline

#14 2023-06-28 15:54:17

czeekaj
Member
Registered: 2019-06-12
Posts: 154  

Re: [SOLVED][Daedalus] Laptop lid open/close issue

Nicely done,
Now there is no way to get it working using slim?
Right now on my machine the lid closure does absolutely nothing running openbox.

Basically I have no suspend features. Where XFCE I would have such features.

Offline

#15 2023-07-25 11:39:24

czeekaj
Member
Registered: 2019-06-12
Posts: 154  

Re: [SOLVED][Daedalus] Laptop lid open/close issue

Also, one way I just noticed to effect lid closure. Depending on your hardware and what kernel module you load. Is to blacklist your vendor specific kernel module for acpi table and just use generic kernel mode will be fallback. Might effect laptops radio kill switch.

run
lsmod

can use modprobe for testing. setting can be in /etc/modprobe.d/blacklist.conf
syntax is for each line
blacklist {module_name}

Last edited by czeekaj (2023-07-25 11:40:35)

Offline

Board footer