您尚未登录。

#1 2024-02-07 16:05:16

Ocyss_04
会员
注册时间: 2023-07-12
帖子: 15

机械革命极光Pro 休眠后开盖无法唤醒

我的配置 机械革命极光Pro 2024顶配款

  ~  neofetch --config none
                   -`                    q@Qarch 
                  .o+`                   ------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: JiguangPro Series GM6PQ7X Standard 
               `+oooooo:                 Kernel: 6.7.1-arch1-1 
               -+oooooo+:                Uptime: 12 mins 
             `/:-:++oooo+:               Packages: 1413 (pacman), 4 (snap) 
            `/++++/+++++++:              Shell: bash 5.2.26 
           `/++++++++++++++:             Resolution: 2560x1600 
          `/+++ooooooooooooo/`           DE: Plasma 5.27.10 
         ./ooosssso++osssssso+`          WM: KWin 
        .oossssso-````/ossssss+`         WM Theme: Layan 
       -osssssso.      :ssssssso.        Theme: [Plasma], Layan-Dark [GTK2/3] 
      :osssssss/        osssso+++.       Icons: [Plasma], Tela [GTK2/3] 
     /ossssssss/        +ssssooo/-       Terminal: konsole 
   `/ossssso+/:-        -:/+osssso+-     Terminal Font: JetBrains Mono NL 13 
  `+sso+:-`                 `.-/+oso:    CPU: 13th Gen Intel i7-13650HX (20) @ 4.700GHz 
 `++:.                           `-/+/   GPU: Intel Raptor Lake-S UHD Graphics 
 .`                                 `/   GPU: NVIDIA GeForce RTX 4070 Max-Q / Mobile 
                                         Memory: 8551MiB / 15730MiB


  ~  lsblk     
NAME        MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
loop0         7:0    0 266.1M  1 loop  /var/lib/snapd/snap/scancode-toolkit/13
loop1         7:1    0  40.4M  1 loop  /var/lib/snapd/snap/snapd/20671
loop2         7:2    0  63.9M  1 loop  /var/lib/snapd/snap/core20/2105
zram0       253:0    0     4G  0 disk  [SWAP]
nvme1n1     259:0    0 931.5G  0 disk  
├─nvme1n1p1 259:1    0    30G  0 part  /home/q/Music
├─nvme1n1p2 259:2    0     1G  0 part  /boot
├─nvme1n1p3 259:3    0    35G  0 part  [SWAP]
└─nvme1n1p4 259:4    0 597.5G  0 part  
  └─root    254:0    0 597.5G  0 crypt /home
                                       /

HandleLidSwitch=suspend:
        合盖正常挂起,键盘背光也正常熄灭,开盖键盘背光亮起,屏幕亮起但全黑。
        切换tty失败,大小写切换键指示灯无变化,按关机键无反应 =》 长按强制关机

HandleLidSwitch=hybrid-sleep:
        合盖20+秒全部熄灭正常休眠。开盖键盘背光亮起,屏幕全黑无背光亮起。
        大小键切换键指示灯正常,切换tty不知道,按关机键好像也没反应 =》长按强制关机

手动 systemctl suspend
鼠标键盘均快速唤醒,正常的一批

手动systemctl hybrid-sleep
第一次唤醒出现代码界面卡死,无法切换tty,强制关机进去恢复唤醒前状态
再次休眠后,唤醒进入了kde锁屏页面,但卡死了,强制关机状态无了。

最近编辑记录 Ocyss_04 (2024-02-07 16:29:32)

离线

#2 2024-02-09 08:08:31

BRS5672023
会员
注册时间: 2020-07-07
帖子: 131

Re: 机械革命极光Pro 休眠后开盖无法唤醒

你试试 acpid,我遇到的问题和你有类似的地方:我是笔记本合盖不熄屏,但是手动 systemctl suspend 是正常的。。

首先禁用 systemd-logind 的操作,创建文件 /etc/systemd/logind.conf.d/lidswitch.conf

[Login]
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore

我使用的 handler.sh 如下

#!/bin/bash
# Default acpi script that takes an entry for all actions

case "$1" in
    button/power)
        case "$2" in
            PBTN|PWRF)
                logger 'PowerButton pressed'
                ;;
            *)
                logger "ACPI action undefined: $2"
                ;;
        esac
        ;;
    button/sleep)
        case "$2" in
            SLPB|SBTN)
                logger 'SleepButton pressed'
                ;;
            *)
                logger "ACPI action undefined: $2"
                ;;
        esac
        ;;
    ac_adapter)
        case "$2" in
            AC|ACAD|ADP0)
                case "$4" in
                    00000000)
                        logger 'AC unpluged'
                        ;;
                    00000001)
                        logger 'AC pluged'
                        ;;
                esac
                ;;
            *)
                logger "ACPI action undefined: $2"
                ;;
        esac
        ;;
    battery)
        case "$2" in
            BAT0)
                case "$4" in
                    00000000)
                        logger 'Battery online'
                        ;;
                    00000001)
                        logger 'Battery offline'
                        ;;
                esac
                ;;
            CPU0)
                ;;
            *)  logger "ACPI action undefined: $2" ;;
        esac
        ;;
    button/lid)
        case "$3" in
            close)
                logger 'LID closed'
                sleep 1 && systemctl suspend
                ;;
            open)
                logger 'LID opened'
                ;;
            *)
                logger "ACPI action undefined: $3"
                ;;
    esac
    ;;
    button/up)
        ;;
    button/down)
        ;;
    button/left)
        ;;
    button/right)
        ;;
    *)
        logger "ACPI group/action undefined: $1 / $2"
        ;;
esac

# vim:set ts=4 sw=4 ft=sh et:

离线

#3 2024-02-09 16:29:51

Ocyss_04
会员
注册时间: 2023-07-12
帖子: 15

Re: 机械革命极光Pro 休眠后开盖无法唤醒

谢谢了,亲测有效,原因应该是kde覆盖了这个配置,我取消了之后合盖也不熄屏,谢谢大佬的配置。

离线

页脚