Askannz / optimus-manager

A Linux program to handle GPU switching on Optimus laptops.
MIT License
2.25k stars 165 forks source link

My system freezes #560

Open enimol opened 3 months ago

enimol commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

System info Please include :

Logs Run optimus-manager --status in a console, and if an error message appears, post it here. The message should also point you to a log path, attach it here as well. If there is no error message but you are still experiencing issues, grab the most recent files in /var/log/optimus-manager/switch/ and /var/log/optimus-manager/daemon/.

I installed the optimus-manager with the Manjaro built-in installer, and I didn't do anything more. Now the switching to nvidia is working but my system randomly freezes. The fans are loud and the system is not responsive.

Maybe I missed a step from the installation, maybe not.

Here is a part of .xsession-errors file, may it could help:

===============================================

(csd-power:8191): CRITICAL : 13:30:16.927: abs_to_percentage: assertion 'max > min' failed Gjs-Message: 13:30:16.946: JS LOG: [LookingGlass/info] Loaded applet sound@cinnamon.org in 30 ms Gjs-Message: 13:30:16.949: JS LOG: calendar@cinnamon.org: Calendar events supported. Gjs-Message: 13:30:16.964: JS LOG: [LookingGlass/info] Loaded applet network@cinnamon.org in 18 ms cinnamon-session[8159]: WARNING: t+4.54707s: Detected that screensaver has appeared on the bus blueman-applet 13.30.17 WARNING DiscvManager:119 update_menuitems: warning: Adapter is None Gjs-Message: 13:30:17.055: JS LOG: [LookingGlass/info] Loaded applet menu@cinnamon.org in 91 ms Gjs-Message: 13:30:17.055: JS LOG: [LookingGlass/info] AppletManager started in 2367 ms Gjs-Message: 13:30:17.057: JS LOG: [LookingGlass/info] Cinnamon took 2455 ms to start Gjs-Message: 13:30:17.068: JS LOG: Unknown network device type, is 32 Gjs-Message: 13:30:17.072: JS LOG: Unknown network device type, is 30 Gjs-Message: 13:30:17.079: JS LOG: [LookingGlass/info] Adding systray: parcellite (48x48px) Gjs-Message: 13:30:17.088: JS LOG: [LookingGlass/info] Hiding systray: network Gjs-Message: 13:30:17.088: JS LOG: [LookingGlass/info] Adding systray: pamac-tray (16x16px)

(cinnamon:8380): XApp-WARNING **: 13:30:17.131: Switcheroo-control doesn't appear to be running, checking for Ubuntu support... Gjs-Message: 13:30:17.143: JS LOG: [LookingGlass/info] GPU offload supported: false Window manager warning: launch-app-key-7 - Overwriting existing binding of keysym 37 with keysym 60 (keycode 10).

(parcellite:8418): Gdk-CRITICAL **: 13:30:18.097: IA__gdk_window_thaw_toplevel_updates_libgtk_only: assertion 'private->update_and_descendants_freeze_count > 0' failed

(pamac-tray:8417): Gdk-CRITICAL **: 13:30:18.097: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed Gjs-Message: 13:30:19.140: JS LOG: Enabling WindowAttentionHandler

(xapp-sn-watcher:8403): GLib-GObject-CRITICAL **: 13:30:46.637: g_object_set: assertion 'G_IS_OBJECT (object)' failed

(xapp-sn-watcher:8403): GLib-GIO-CRITICAL **: 13:30:46.637: g_dbus_interface_skeleton_flush: assertion 'G_IS_DBUS_INTERFACESKELETON (interface)' failed

(xapp-sn-watcher:8403): GLib-GObject-CRITICAL **: 13:30:46.637: g_object_set: assertion 'G_IS_OBJECT (object)' failed

(xapp-sn-watcher:8403): GLib-GIO-CRITICAL **: 13:30:46.637: g_dbus_interface_skeleton_flush: assertion 'G_IS_DBUS_INTERFACESKELETON (interface)' failed

(xapp-sn-watcher:8403): GLib-GObject-CRITICAL **: 13:30:46.637: invalid (NULL) pointer instance

(xapp-sn-watcher:8403): GLib-GObject-CRITICAL : 13:30:46.637: signal_emit_valist_unlocked: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed cinnamon-session[8159]: WARNING: t+34.55001s: Detected that screensaver has left the bus Message: 13:30:47.141: updates_checker.vala:70: check updates ** Message: 13:30:47.329: updates_checker.vala:100: 0 updates found

===============================================

cucumber-sp commented 3 months ago

I have freezes when open/close new windows or context menus. You too?

enimol commented 3 months ago

No. I have freezes with already opened windows. Moreover, had freeze 3 seconds after the switch to nvidia, then there were no opened windows.

enimol commented 3 months ago

I have freezes when open/close new windows or context menus. You too?

          I have freezes when open/close new windows or context menus. You too?

Originally posted by @cucumber-sp in https://github.com/Askannz/optimus-manager/issues/560#issuecomment-2019642651

Today I got the same issue that you mentioned. After I closed the firefox window the system immediatly became frozen.

cucumber-sp commented 3 months ago

I switched to envycontrol + gnome extension. Works without freezes and problems