pop-os / system76-power

Power profile management for Linux
GNU General Public License v3.0
584 stars 72 forks source link

Unable to hibernate #285

Open jarxv opened 2 years ago

jarxv commented 2 years ago

This daemon works really well and is very compatible but only issue that It makes my machine unable to hibernate. I have installed this form the opensuse user repository. Here's the dmesg output:

[ 2398.643619] PM: hibernation: hibernation entry [ 2398.725257] BUG: unable to handle page fault for address: 000043198980f378 [ 2398.725268] #PF: supervisor read access in kernel mode [ 2398.725274] #PF: error_code(0x0000) - not-present page [ 2398.725279] PGD 0 P4D 0 [ 2398.725285] Oops: 0000 [#1] SMP PTI [ 2398.725293] CPU: 3 PID: 11453 Comm: systemd-sleep Tainted: G S IOE 5.14.14-1-default #1 openSUSE Tumbleweed eb80aab517ad5c2c72fc7811cce14acf272d56c0 [ 2398.725304] Hardware name: ASUSTeK COMPUTER INC. N552VW/N552VW, BIOS N552VW.204 02/04/2016 [ 2398.725307] RIP: 0010:bbswitch_pm_handler+0x49/0x150 [bbswitch] [ 2398.725322] Code: 93 00 00 00 b8 01 00 00 00 89 f1 48 d3 e0 a8 54 0f 85 9c 00 00 00 a8 0a 74 7d 48 8b 3d 50 31 00 00 48 8b 47 10 48 85 c0 74 21 <48> 8b 40 38 48 85 c0 74 18 48 8d b8 c8 00 00 00 be 04 00 00 00 e8 [ 2398.725328] RSP: 0018:ffffba7d00dc7d28 EFLAGS: 00010202 [ 2398.725335] RAX: 000043198980f340 RBX: ffffffffc0929000 RCX: 0000000000000001 [ 2398.725341] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff976001dc4000 [ 2398.725345] RBP: 0000000000000000 R08: 0000000000000006 R09: ffffffffa7e70858 [ 2398.725349] R10: 0000000000000001 R11: 0000000000000b27 R12: 0000000000000000 [ 2398.725353] R13: 0000000000000001 R14: ffffffffa7e77a00 R15: 0000000000000007 [ 2398.725358] FS: 00007f1419585f40(0000) GS:ffff9763764c0000(0000) knlGS:0000000000000000 [ 2398.725364] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2398.725369] CR2: 000043198980f378 CR3: 00000001a3daa006 CR4: 00000000003706e0 [ 2398.725375] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 2398.725378] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 2398.725383] Call Trace: [ 2398.725390] blocking_notifier_call_chain_robust+0x64/0xd0 [ 2398.725402] pm_notifier_call_chain_robust+0x19/0x30 [ 2398.725412] hibernate.cold+0x20/0x1fb [ 2398.725420] state_store+0xc9/0xd0 [ 2398.725430] kernfs_fop_write_iter+0x11c/0x1b0 [ 2398.725443] new_sync_write+0x11c/0x1b0 [ 2398.725456] vfs_write+0x1be/0x250 [ 2398.725462] ksys_write+0x5f/0xe0 [ 2398.725468] do_syscall_64+0x5c/0x80 [ 2398.725478] ? syscall_exit_to_user_mode+0x18/0x40 [ 2398.725488] ? do_syscall_64+0x69/0x80 [ 2398.725494] ? exc_page_fault+0x68/0x130 [ 2398.725503] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 2398.725510] RIP: 0033:0x7f1419fbd7e7 [ 2398.725517] Code: 0f 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24 [ 2398.725523] RSP: 002b:00007ffe5cc6e6e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 2398.725530] RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f1419fbd7e7 [ 2398.725534] RDX: 0000000000000005 RSI: 00007ffe5cc6e7d0 RDI: 0000000000000004 [ 2398.725538] RBP: 00007ffe5cc6e7d0 R08: 000055a69c0514a0 R09: 00007f141a0724e0 [ 2398.725542] R10: 00007f141a0723e0 R11: 0000000000000246 R12: 0000000000000005 [ 2398.725546] R13: 000055a69c0354f0 R14: 0000000000000005 R15: 00007f141a0b77a0

crawfxrd commented 2 years ago

Is there a reason you need bumblebee?

RIP: 0010:bbswitch_pm_handler+0x49/0x150 [bbswitch]

You can see where bbswitch is crashing with gdb:

gdb /path/to/bbswitch.ko
> list *(bbswitch_pm_handler+0x49)