Giter VIP home page Giter VIP logo

optimus-manager's People

Contributors

agentfabulous avatar ann1kab avatar askannz avatar benking6 avatar codepurble avatar dextertd avatar es20490446e avatar jacekpoz avatar jampe avatar javacafe01 avatar jimver avatar jsmnbom avatar kr1ss-xd avatar kuroni avatar maddin-619 avatar matejkrajcovic avatar petrusz avatar pk-kampanart avatar quebin31 avatar robbert-vdh avatar rsttst avatar sak96 avatar shaileshaanand avatar shatur avatar vieiraa avatar whenov avatar wleoncio avatar xmine64 avatar yashkathe avatar ydallilar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

optimus-manager's Issues

support arch linux-lts kernel packages

I just tried to install the aur and see a depency to the linux kernel package.
Is it possible to support linux-lts instead of the linux kernel package?

Thanks!

(Probably fixed in master) 0.3-2 from the aur: Configuring anything in /etc/optimus-manager.conf makes lightdm crash during Xorg configuration

journalctl -u lightdm

Νοε 25 01:05:04 X555LD python[2925]: Setting up Optimus configuration
Νοε 25 01:05:04 X555LD python[2925]: Cannot read requested mode : File /var/lib/optimus-manager/requested_mode not found..
Νοε 25 01:05:04 X555LD python[2925]: Using startup mode instead.
Νοε 25 01:05:04 X555LD python[2925]: Startup mode : intel
Νοε 25 01:05:04 X555LD python[2925]: Requested mode : intel
Νοε 25 01:05:04 X555LD python[2925]: Switching to Intel
Νοε 25 01:05:04 X555LD python[2925]: Unloading Nvidia modules
Νοε 25 01:05:05 X555LD python[2925]: Configuring Xorg...
Νοε 25 01:05:05 X555LD python[2925]: Traceback (most recent call last):
Νοε 25 01:05:05 X555LD python[2925]:   File "/usr/bin/optimus-manager-setup", line 11, in <module>
Νοε 25 01:05:05 X555LD python[2925]:     load_entry_point('optimus-manager==0.3', 'console_scripts', 'optimus-manager-setup')()
Νοε 25 01:05:05 X555LD python[2925]:   File "/usr/lib/python3.7/site-packages/optimus_manager/optimus_manager_setup.py", line 64, in main
Νοε 25 01:05:05 X555LD python[2925]:     switch_to_intel(config)
Νοε 25 01:05:05 X555LD python[2925]:   File "/usr/lib/python3.7/site-packages/optimus_manager/switching.py", line 51, in switch_to_intel
Νοε 25 01:05:05 X555LD python[2925]:     configure_xorg(config, mode="intel")
Νοε 25 01:05:05 X555LD python[2925]:   File "/usr/lib/python3.7/site-packages/optimus_manager/xorg.py", line 16, in configure_xorg
Νοε 25 01:05:05 X555LD python[2925]:     xorg_conf_text = _generate_intel(config, bus_ids)
Νοε 25 01:05:05 X555LD python[2925]:   File "/usr/lib/python3.7/site-packages/optimus_manager/xorg.py", line 57, in _generate_intel
Νοε 25 01:05:05 X555LD python[2925]:     text += "\tOption \"AccelMethod\" \"%d\"\n" % config["intel"]["accel"]
Νοε 25 01:05:05 X555LD python[2925]: TypeError: %d format: a number is required, not str
Νοε 25 01:05:05 X555LD systemd[1]: lightdm.service: Control process exited, code=exited status=1

In /etc/optimus-manager.conf I had

[intel]
driver=intel
accel=sna
tearfree=true

And I tried removing them one by one. Had to delete the file completely

Crash when switching to Nvidia/basic questions

Firstly, thanks so much for this package! I'm quite new to Linux in general and this is the only option I've found that should do everything I need 👍 😄

I'm having some issues though and hoped you might be able to point me in the right direction.

I'm running a fresh install of Manjaro KDE and have optimus-manager installed correctly.
It actually fixed an issue with my boot which I think is related to nouveau (I have to set nouveau.modeset=0 to get to the live installer otherwise it doesn't work). When using optimus-manager to switch to Nvidia my laptop completely freezes (not able to use control+alt+f1 etc).

I didn't see in the instructions anywhere a note about installing an Nvidia driver - I assume I should have one installed for this to work correctly? If so what would be the one to go for taking into account my nouveau issues above? Any other pointers for my situation?

Thanks so much - hopefully I can finally get this working after 2 weeks of trying! 😄

System crashes on set-startup intel

Describe the bug
When I set optimus-manager to use intel on boot using optimus-manager --set-startup intel, my computer crashes a few seconds after entering my desktop environment.
If I have nvidia on startup and then switch to intel, it works fine.

System info

Logs (After booting with startup intel, I changed startup to nvidia and then rebooted. After that I switched to intel and then posted the logs)

Loginctl to change seat

Hi, I was looking into different ways that don't necessarily consist of restarting the display-manager or restarting X. Specifically I was interested if it would be possible to use the loginctl command.

 loginctl attach [Seat Name] [Device...]   

According, to the loginctl's man page it is possible to attach the device like a graphics card to a specific seat. Then it is possible to use loginctl to flush the that device using

loginctl fluh-devices

I'm not sure how to exactly implement this myself. I thought maybe I can give you the idea and if you had time you can run with it. I'm will to try to do some testing if you need help or whatever. Let me know if I'm misinterpreting the use of loginctl.

spotify tracks issues

Describe the bug
When using optimus-manager, I am no longer able to skip songs on spotify 1.0.94.262-1 (latest AUR package). I can't even play the same song again (by going back). Also, when in a playlist, the next song won't get played. I didn't have the issues with nvidia-xrun. Tested while in nvidia mode, didn't try with intel.

System info
Arch Linux
XFCE 4
LightDM

Logs
I read the logs and didn't find them helpful at all. It is likely, that the bug is easily reproducible, though.

Unable to switch to nvidia

Describe the bug
I am unable to switch to the nvidia mode. This used to work before. --switch nvidia nor --set-startup nvidia work.

System info
Please include :

Logs
Logs are after booting usingoptimus-manager --set-startup nvidia_once

software vsync doesn work

Hi,

I am a beginner so some things can be incomprehensible but:

I don't have problem with stuttering or bad performance. When i have turned on modeset, game ( eg banished via proton) runs fast but i have image waving. It's normal results from a large amount of FPS. In game vsync option doesnt take effect.

disabling the modeset gives mi bad performance so i skip this option.

is there a way to software (in-game) forcing vsync or is it closely related to prime synchronization?

greets!
Paul/Jaggen

Games still run in intel mode

I use steam to run some games in Nvidia mode, while it seems that the graphics list inside game stills shows 'Unknown Device', which I think is intel GPU other than Nvidia GPU and could not change. If I could pass some options to the game before running it?

Can't switch to nvidia

Manjaro KDE testing
kernel 4.19
bumblebee-nvidia non-free setup via mhwd (years ago)

My bumblebee was working great but since my battery died and I need to have laptop always plugged into AC I thought I will switch to nvidia but still wanted to have an option to switch just in case.

I followed the instructions and issued the command:

optimus-manager --switch nvidia

Session correctly reloads but I'm still on intel. I have no idea why isn't it working. I don't have nouveau, but it should use bbwistch instead? Also, I don't see any new config files in the areas where I was supposed to clear of configs so it looks as if optimus-manager failed to create own configs in /etc/optimus-manager/
Meaning, there are configs for intel and nvidia there, but only the hashed beginning and not the real lines with configurations, so for example:

# You can use this file to add Xorg options which are not covered in the configuration file.
#
# Everything you put here will go to the "Device" section corresponding
# to the Nvidia GPU in the Xorg configuration.
# Lines starting with # are ignored.
#
# Example :
#
# Option "ConnectToAcpid" "0" 

and then nothing more.

I haven't rebooted yet but the guide didn't mention this to be necessary and I afraid system won't be bootable. I can revert changes in tty but still I wanted to solve it before doing reboot.

sudo systemctl status optimus-manager
● optimus-manager.service - Optimus Manager Commands Daemon
   Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2018-12-25 13:20:01 CET; 13min ago
 Main PID: 6133 (python)
    Tasks: 1 (limit: 4915)
   Memory: 17.6M
   CGroup: /system.slice/optimus-manager.service
           └─6133 /usr/bin/python -u /usr/bin/optimus-manager-daemon
optimus-manager --print-mode
Current mode : intel
sudo journalctl -u display-manager.service
-- Logs begin at Sat 2018-08-11 22:16:00 CEST, end at Tue 2018-12-25 13:57:31 CET. --
-- No entries --

Later on after few other tries journalctl shows:

-- Logs begin at Sat 2018-08-11 22:16:00 CEST, end at Tue 2018-12-25 18:43:00 CET. --
gru 25 13:20:01 alienware-PC systemd[1]: Started Optimus Manager Commands Daemon.
gru 25 13:20:01 alienware-PC python[6133]: Optimus Manager (Daemon) version 0.5
gru 25 13:20:01 alienware-PC python[6133]: Awaiting commands
gru 25 13:23:45 alienware-PC python[6133]: Received command : nvidia
gru 25 13:23:45 alienware-PC python[6133]: Writing requested mode
gru 25 13:23:45 alienware-PC python[6133]: Restarting login manager
gru 25 13:26:38 alienware-PC python[6133]: Received command : nvidia
gru 25 13:26:38 alienware-PC python[6133]: Writing requested mode
gru 25 13:26:38 alienware-PC python[6133]: Restarting login manager
gru 25 16:19:24 alienware-PC python[6133]: Received command : nvidia
gru 25 16:19:24 alienware-PC python[6133]: Writing requested mode
gru 25 16:19:24 alienware-PC python[6133]: Restarting login manager
gru 25 16:35:06 alienware-PC python[6133]: Received command : nvidia
gru 25 16:35:06 alienware-PC python[6133]: Writing requested mode
gru 25 16:35:06 alienware-PC python[6133]: Restarting login manager
gru 25 17:48:08 alienware-PC python[6133]: Received command : nvidia
gru 25 17:48:08 alienware-PC python[6133]: Writing requested mode
gru 25 17:48:08 alienware-PC python[6133]: Restarting login manager

Here is what I did:

  1. Installation

sudo pacman -S optimus-manager

  1. Cleaning driver configuration to backups

sudo mv /etc/X11/nvidia-xorg.conf /etc/X11/nvidia-xorg.conf.bak

sudo mv /etc/X11/xorg.conf.d/20-intel.conf /etc/X11/xorg.conf.d/20-intel.conf.bak
sudo mv /etc/X11/xorg.conf.d/90-mhwd.conf /etc/X11/xorg.conf.d/90-mhwd.conf.bak

sudo mv /etc/X11/mhwd.d/intel.conf /etc/X11/mhwd.d/intel.conf.bak

My xorg.conf was already disabled years so I didn’t have to back it up (I already had some ancient xorg.conf.bak file) and skip that part.

  1. Turning Bumblebee off (now and on boot)

sudo systemctl stop bumblebeed
sudo systemctl disable bumblebeed

  1. Make sure the bbswitch module is not loaded at boot time

Check /etc/modules-load.d/
All my confs don't have bbswitch there so I'm fine.

Make backups of the files to be able restore original settings manually, just in case:

sudo cp /etc/modules-load.d/linux414-virtualbox-host-modules.conf /etc/modules-load.d/linux414-virtualbox-host-modules.conf.bak
sudo cp /etc/modules-load.d/linux419-virtualbox-host-modules.conf /etc/modules-load.d/linux419-virtualbox-host-modules.conf.bak
sudo cp /etc/modules-load.d/mhwd-gpu.conf /etc/modules-load.d/mhwd-gpu.conf.bak
sudo cp /etc/modules-load.d/modules.conf /etc/modules-load.d/modules.conf.bak

  1. Start optimus-manager (now and on boot):

sudo systemctl start optimus-manager.service
sudo systemctl enable optimus-manager.service

  1. Check if optimus-manager.service is running:

sudo systemctl status optimus-manager

  1. Use

optimus-manager --switch nvidia
optimus-manager --switch intel

optimus-manager service fails

Hey, everything worked fine yesterday. Today it doesnt find the service when i try to switch gpu.

And now the fan on the laptop keeps like spinning for 1 sec every 5 sec.

Any ideas ?

19 04:56:13 XPS systemd[1]: optimus-manager.service: Start request repeate>
nov. 19 04:56:13 XPS systemd[1]: optimus-manager.service: Failed with result 'e>
nov. 19 04:56:13 XPS systemd[1]: Failed to start Optimus Manager.
-- Subject: Unit optimus-manager.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit optimus-manager.service has failed.
-- 
-- The result is RESULT.
nov. 19 04:56:13 XPS sudo[10894]: alekhoff : TTY=pts/0 ; PWD=/home/alekhoff ; U>
nov. 19 04:56:13 XPS sudo[10894]: pam_unix(sudo:session): session opened for us>
nov. 19 04:56:13 XPS systemd[1]: optimus-manager.service: Start request repeate>
nov. 19 04:56:13 XPS systemd[1]: optimus-manager.service: Failed with result 'e>
nov. 19 04:56:13 XPS systemd[1]: Failed to start Optimus Manager.
-- Subject: Unit optimus-manager.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit optimus-manager.service has failed.
-- 
-- The result is RESULT.
nov. 19 04:56:13 XPS sudo[10894]: pam_unix(sudo:session): session closed for us>`

Switching to NVIDIA using bbswitch while pci_reset=yes causes GPU to fall off the bus.

If pci_reset is set to no in the config file, everything works normally. Maybe when option bbswitch is set pci_reset should be ignored as well, like with the power management setting?

System info
Manjaro Cinnamon, using LightDM
GPU: 04:00.0 3D controller [0302]: NVIDIA Corporation GF117M [GeForce 820M] [10de:1140] (rev a1)

**Contents of /etc/optimus-manager/optimus-manager.conf **

[optimus]
switching=bbswitch

[intel]
driver=intel
accel=sna
tearfree=yes

[nvidia]
options=triple_buffer

dmesg after switching:

[ +18,770779] IPMI message handler: version 39.2
[  +0,002074] ipmi device interface
[  +0,104338] nvidia: module license 'NVIDIA' taints kernel.
[  +0,000018] Disabling lock debugging due to kernel taint
[  +0,015162] nvidia-nvlink: Nvlink Core is being initialized, major device number 236
[  +0,000299] nvidia 0000:04:00.0: enabling device (0000 -> 0003)
[  +0,000150] NVRM: The NVIDIA GPU 0000:04:00.0
              NVRM: (PCI ID: 10de:1140) installed in this system has
              NVRM: fallen off the bus and is not responding to commands.
[  +0,000045] nvidia: probe of 0000:04:00.0 failed with error -1
[  +0,000014] NVRM: The NVIDIA probe routine failed for 1 device(s).
[  +0,000001] NVRM: None of the NVIDIA graphics adapters were initialized!
[  +0,017860] nvidia-nvlink: Unregistered the Nvlink Core, major device number 236
[  +0,255839] nvidia-nvlink: Nvlink Core is being initialized, major device number 236
[  +0,000440] NVRM: The NVIDIA GPU 0000:04:00.0
              NVRM: (PCI ID: 10de:1140) installed in this system has
              NVRM: fallen off the bus and is not responding to commands.
[  +0,000045] nvidia: probe of 0000:04:00.0 failed with error -1
[  +0,000015] NVRM: The NVIDIA probe routine failed for 1 device(s).
[  +0,000000] NVRM: None of the NVIDIA graphics adapters were initialized!
[  +0,020308] nvidia-nvlink: Unregistered the Nvlink Core, major device number 236

Invalid value "" for option "options" in section [nvidia]

Describe the bug
I can't leave the options option blank in the [nvidia] section.
https://github.com/Askannz/optimus-manager/blob/master/optimus-manager.conf#L85

System info

  • Arch Linux
  • GNOME
  • GDM

Logs

mars 27 00:15:53 leeo-arch-msi systemd[1]: Started Optimus Manager Commands Daemon.
mars 27 00:15:54 leeo-arch-msi python[12239]: Optimus Manager (Daemon) version 0.8
mars 27 00:15:54 leeo-arch-msi python[12239]: Error loading config file : Invalid value "" for option "options" in section [nvidia]
mars 27 00:15:54 leeo-arch-msi python[12239]: Awaiting commands

DPI not set correctly

Describe the bug
When switching from Intel to the Nvidia driver, the DPI looks like it is set to 75 instead of the native mode of 96. There is something in the logs about "Unable to get display device for DPI computation". I have worked around the problem by adding "xrandr --dpi 96" to the Xsetup file, but this isn't optimal, obviously, as it will get overwritten with an update.

System info
Distribution: Arch linux
Desktop Manager: Plasma (KDE)
Display Manager: SDDM
Laptop: Dell XPS 9560

Logs
Xorg : https://pastebin.com/KhPgy708
Display manager : No output
Daemon : No output

Issue with modesetting to intel.

I need to use intel driver instead of modesetting. I have a lot of tearing in modesetting driver (Tried dri 3 - 2 no matter). And script doesnt allow me change to intel.

optimus-manager-0.7.1-1 breakes sound

Describe the bug
After upgrade system boots correctly default to intel, all work, but switch to nvidia takes abnormally long (usually few seconds, after update ca. 15s) and the sound is lost. After clicking on the sound applet in Plasma panel I get just empty area as if sound components haven't loaded. Switching to intel again isn't helping. The sound is restored after reboot.
Bug happens all the time. Every GPU switch causes system to lost sound and maybe more is happening.
I checked journalctl -b -p3 and didn't detect anything specific to sound thou.

Downgrading optimus manager to 0.6-1 fixes the issue.

Comparing journalctl from after nvidia switch and then after downgrade and again nvidia switch I get akonadi, kglobalaccel5, latte crashes because "application failed to start because no Qt platform plugin could be initialized" and that probably increases the login to nvidia session, but I fail to understand why and how optimus-manager could influence Plasma elements to start.

System info
Please include :

  • Your distribution: Manjaro KDE
  • Your desktop manager: Plasma
  • You display manager: SDDM
  • Unstable branch: there was an update today with NEW NVIDIA DRIVER LINE which is very likely the cause of the issue or may be relevant? Not sure what the sound has to do with anything but the sound may be only the sign of a more general, wider issue.
    Nvidia driver: 1:418.43-1

Logs

Here is some general info about the system:

https://pastebin.com/SGEVTE8f

Here is the log after the switch, ignore baloo crash, I just noticed it but it's an irrelevant and independent issue:

https://pastebin.com/xn17NyPf

If you need any additional info, let me know. I can install 0.7.1-1 again and then check relevant logs.

New version not working. /Sddm

I cant change my gpu intel to nvidia, nvidia to intel

System info

System:    Host: Tuxy Kernel: 4.19.32-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 Desktop: KDE Plasma 5.15.3 
           Distro: Manjaro Linux 
Machine:   Type: Laptop System: Micro-Star product: CX62 6QD v: REV:1.0 serial: <root required> 
           Mobo: Micro-Star model: MS-16J6 v: REV:1.0 serial: <root required> UEFI: American Megatrends v: E16J6IMS.10C 
           date: 01/17/2018 
Battery:   ID-1: BAT1 charge: 39.5 Wh condition: 41.2/42.4 Wh (97%) model: MSI Corp. MS-16J6 status: Unknown 
           Device-1: hidpp_battery_0 model: Logitech Touch Mouse T620 charge: 100% (should be ignored) status: Discharging 
CPU:       Topology: Quad Core model: Intel Core i5-6300HQ bits: 64 type: MCP arch: Skylake-S rev: 3 L2 cache: 6144 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 18436 
           Speed: 800 MHz min/max: 800/3200 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 801 
Graphics:  Device-1: Intel HD Graphics 530 vendor: Micro-Star MSI driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA GM108M [GeForce 940MX] vendor: Micro-Star MSI driver: nvidia v: 418.43 bus ID: 01:00.0 
           Display: tty server: X.Org 1.20.4 driver: modesetting,nvidia resolution: 1366x768~60Hz 
           OpenGL: renderer: GeForce 940MX/PCIe/SSE2 v: 4.6.0 NVIDIA 418.43 direct render: Yes 
Audio:     Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 
           Sound Server: ALSA v: k4.19.32-1-MANJARO 
Network:   Device-1: Intel Wireless 3165 driver: iwlwifi v: kernel port: e000 bus ID: 02:00.0 
           IF: wlp2s0 state: up mac: 68:07:15:10:c9:67 
           Device-2: Qualcomm Atheros QCA8171 Gigabit Ethernet vendor: Micro-Star MSI driver: alx v: kernel port: d000 
           bus ID: 03:00.0 
           IF: enp3s0 state: down mac: d8:cb:8a:f5:99:9a 
Drives:    Local Storage: total: 1.02 TiB used: 8.51 GiB (0.8%) 
           ID-1: /dev/sda vendor: Western Digital model: WDS120G2G0B-00EPW0 size: 111.80 GiB 
           ID-2: /dev/sdb vendor: HGST (Hitachi) model: HTS721010A9E630 size: 931.51 GiB 
Partition: ID-1: / size: 109.25 GiB used: 8.51 GiB (7.8%) fs: ext4 dev: /dev/sda2 
Sensors:   System Temperatures: cpu: 60.0 C mobo: 27.8 C gpu: nvidia temp: 46 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 230 Uptime: 4m Memory: 7.70 GiB used: 1.58 GiB (20.5%) Init: systemd Compilers: gcc: 8.2.1 Shell: bash 
           v: 5.0.0 inxi: 3.0.32 

Logs


-- Logs begin at Sat 2019-03-30 15:14:06 +03, end at Sat 2019-03-30 17:52:16 +03. --
Mar 30 17:46:56 Tuxy systemd[1]: Starting Simple Desktop Display Manager...
Mar 30 17:46:56 Tuxy python[574]: Optimus Manager (DM setup) version 0.8
Mar 30 17:46:56 Tuxy python[574]: Setting up Optimus configuration
Mar 30 17:46:56 Tuxy python[574]: Removed /etc/X11/xorg.conf.d/10-optimus-manager.conf
Mar 30 17:46:56 Tuxy python[574]: Reverted /usr/share/sddm/scripts/Xsetup
Mar 30 17:46:56 Tuxy python[574]: Removed /etc/sddm.conf.d/10-optimus-manager.conf
Mar 30 17:46:56 Tuxy python[574]: Cannot read requested mode : File /var/lib/optimus-manager/requested_mode not found..
Mar 30 17:46:56 Tuxy python[574]: Using startup mode instead.
Mar 30 17:46:56 Tuxy python[574]: Cannot read startup mode : Cannot open or read /var/lib/optimus-manager/startup_mode.
Mar 30 17:46:56 Tuxy python[574]: Using default startup mode intel instead.
Mar 30 17:46:56 Tuxy python[574]: Startup mode : intel
Mar 30 17:46:56 Tuxy python[574]: Requested mode : intel
Mar 30 17:46:56 Tuxy python[574]: Switching to Intel
Mar 30 17:46:56 Tuxy python[574]: Unloading Nvidia modules
Mar 30 17:46:56 Tuxy python[574]: Loading nouveau module
Mar 30 17:46:58 Tuxy python[574]: Configuring Xorg...
Mar 30 17:46:58 Tuxy python[574]: Loaded extra Intel Xorg options (0 lines)
Mar 30 17:46:58 Tuxy python[574]: Loaded extra Nvidia Xorg options (0 lines)
Mar 30 17:46:58 Tuxy python[574]: Configuring login managers..
Mar 30 17:46:58 Tuxy python[574]:         Configuring SDDM
Mar 30 17:47:08 Tuxy systemd[1]: Started Simple Desktop Display Manager.
Mar 30 17:47:08 Tuxy sddm[751]: Initializing...
Mar 30 17:47:08 Tuxy sddm[751]: Starting...
Mar 30 17:47:08 Tuxy sddm[751]: Logind interface found
Mar 30 17:47:08 Tuxy sddm[751]: Adding new display on vt 1 ...
Mar 30 17:47:08 Tuxy sddm[751]: Loading theme configuration from ""
Mar 30 17:47:08 Tuxy sddm[751]: Display server starting...
Mar 30 17:47:08 Tuxy sddm[751]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{60150cff-cccb-4ba4-a30b-71e4d1a3fdfb} -background none -noreset -displayfd >
Mar 30 17:47:10 Tuxy sddm[751]: Setting default cursor
Mar 30 17:47:10 Tuxy sddm[751]: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
Mar 30 17:47:10 Tuxy sddm[751]: Display server started.
Mar 30 17:47:10 Tuxy sddm[751]: Socket server starting...
Mar 30 17:47:10 Tuxy sddm[751]: Socket server started.
Mar 30 17:47:10 Tuxy sddm[751]: Loading theme configuration from "/usr/share/sddm/themes/breath/theme.conf"
Mar 30 17:47:10 Tuxy sddm[751]: Greeter starting...
Mar 30 17:47:10 Tuxy sddm[751]: Adding cookie to "/var/run/sddm/{60150cff-cccb-4ba4-a30b-71e4d1a3fdfb}"
Mar 30 17:47:10 Tuxy sddm-helper[765]: [PAM] Starting...
Mar 30 17:47:10 Tuxy sddm-helper[765]: [PAM] Authenticating...
Mar 30 17:47:10 Tuxy sddm-helper[765]: [PAM] returning.
Mar 30 17:47:10 Tuxy sddm-helper[765]: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
Mar 30 17:47:11 Tuxy sddm[751]: Greeter session started successfully
Mar 30 17:47:11 Tuxy sddm[751]: Message received from greeter: Connect
Mar 30 17:47:17 Tuxy sddm[751]: Message received from greeter: Login
Mar 30 17:47:17 Tuxy sddm[751]: Reading from "/usr/share/xsessions/plasma.desktop"
Mar 30 17:47:17 Tuxy sddm[751]: Reading from "/usr/share/xsessions/plasma.desktop"
Mar 30 17:47:17 Tuxy sddm[751]: Session "/usr/share/xsessions/plasma.desktop" selected, command: "/usr/bin/startkde"
Mar 30 17:47:17 Tuxy sddm-helper[824]: [PAM] Starting...
Mar 30 17:47:17 Tuxy sddm-helper[824]: [PAM] Authenticating...
Mar 30 17:47:17 Tuxy sddm-helper[824]: [PAM] Preparing to converse...
Mar 30 17:47:17 Tuxy sddm-helper[824]: [PAM] Conversation with 1 messages
Mar 30 17:47:17 Tuxy sddm-helper[824]: pam_kwallet5(sddm:auth): (null): pam_sm_authenticate
Mar 30 17:47:17 Tuxy sddm-helper[824]: [PAM] returning.
Mar 30 17:47:17 Tuxy sddm[751]: Authenticated successfully
Mar 30 17:47:17 Tuxy sddm-helper[824]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
Mar 30 17:47:17 Tuxy sddm-helper[824]: pam_unix(sddm:session): session opened for user loradona by (uid=0)
Mar 30 17:47:17 Tuxy sddm-helper[824]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_open_session
Mar 30 17:47:17 Tuxy sddm-helper[824]: Starting: "/usr/share/sddm/scripts/Xsession \"/usr/bin/startkde\""
Mar 30 17:47:17 Tuxy sddm[751]: Auth: sddm-helper exited successfully
Mar 30 17:47:17 Tuxy sddm[751]: Greeter stopped.
Mar 30 17:47:17 Tuxy sddm[751]: Session started
Mar 30 17:48:42 Tuxy sddm[751]: Signal received: SIGTERM
Mar 30 17:48:42 Tuxy systemd[1]: Stopping Simple Desktop Display Manager...
Mar 30 17:48:42 Tuxy sddm[751]: Socket server stopping...
Mar 30 17:48:42 Tuxy sddm[751]: Socket server stopped.
Mar 30 17:48:42 Tuxy sddm[751]: Display server stopping...
Mar 30 17:48:42 Tuxy sddm[751]: kwalletd5: Checking for pam module
Mar 30 17:48:42 Tuxy sddm[751]: kwalletd5: Got pam-login param
Mar 30 17:48:42 Tuxy sddm[751]: kwalletd5: Waiting for hash on 7-
Mar 30 17:48:42 Tuxy sddm[751]: kwalletd5: waitingForEnvironment on: 3
Mar 30 17:48:42 Tuxy sddm[751]: kwalletd5: client connected
Mar 30 17:48:42 Tuxy sddm[751]: kwalletd5: client disconnected
Mar 30 17:48:43 Tuxy sddm[751]: Display server stopped.
Mar 30 17:48:43 Tuxy sddm[751]: Running display stop script  "/usr/share/sddm/scripts/Xstop"
Mar 30 17:48:43 Tuxy sddm[751]: QProcess: Destroyed while process ("/usr/lib/sddm/sddm-helper") is still running.
Mar 30 17:48:43 Tuxy python[1239]: Optimus Manager (DM setup) version 0.8
Mar 30 17:48:43 Tuxy python[1239]: Cleaning up Optimus configuration
Mar 30 17:48:43 Tuxy python[1239]: Removed /etc/X11/xorg.conf.d/10-optimus-manager.conf
Mar 30 17:48:43 Tuxy python[1239]: Reverted /usr/share/sddm/scripts/Xsetup
Mar 30 17:48:43 Tuxy python[1239]: Removed /etc/sddm.conf.d/10-optimus-manager.conf
Mar 30 17:48:43 Tuxy python[1239]: Terminating X11 sessions
Mar 30 17:48:43 Tuxy python[1239]: 1 open sessions found, terminating them manually with "terminate"
Mar 30 17:48:45 Tuxy python[1239]: 1 open sessions found, terminating them manually with "sigterm"
Mar 30 17:48:45 Tuxy python[1239]: Killing remaining X11 servers
Mar 30 17:48:45 Tuxy python[1239]: Killing systemd-logind
Mar 30 17:48:45 Tuxy python[1239]: Unloading kernel modules
Mar 30 17:48:45 Tuxy python[1239]: Resetting the GPU
Mar 30 17:48:46 Tuxy systemd[1]: sddm.service: Succeeded.
Mar 30 17:48:46 Tuxy systemd[1]: Stopped Simple Desktop Display Manager.
Mar 30 17:48:47 Tuxy systemd[1]: Starting Simple Desktop Display Manager...
Mar 30 17:48:47 Tuxy python[1310]: Optimus Manager (DM setup) version 0.8
Mar 30 17:48:47 Tuxy python[1310]: Setting up Optimus configuration
Mar 30 17:48:47 Tuxy python[1310]: Reverted /usr/share/sddm/scripts/Xsetup
Mar 30 17:48:47 Tuxy python[1310]: Requested mode : nvidia
Mar 30 17:48:47 Tuxy python[1310]: Switching to Nvidia
Mar 30 17:48:47 Tuxy python[1310]: Unloading nouveau module
Mar 30 17:48:47 Tuxy python[1310]: Loading Nvidia modules
Mar 30 17:48:48 Tuxy python[1310]: Configuring Xorg...
Mar 30 17:48:48 Tuxy python[1310]: Loaded extra Intel Xorg options (0 lines)
Mar 30 17:48:48 Tuxy python[1310]: Loaded extra Nvidia Xorg options (0 lines)
Mar 30 17:48:48 Tuxy python[1310]: Configuring login managers..
Mar 30 17:48:48 Tuxy python[1310]:         Configuring SDDM
Mar 30 17:48:58 Tuxy systemd[1]: Started Simple Desktop Display Manager.
Mar 30 17:48:58 Tuxy sddm[1324]: Initializing...
Mar 30 17:48:58 Tuxy sddm[1324]: Starting...
Mar 30 17:48:58 Tuxy sddm[1324]: Logind interface found
Mar 30 17:48:58 Tuxy sddm[1324]: Adding new display on vt 1 ...
Mar 30 17:48:58 Tuxy sddm[1324]: Loading theme configuration from ""
Mar 30 17:48:58 Tuxy sddm[1324]: Display server starting...
Mar 30 17:48:58 Tuxy sddm[1324]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{570c7350-590b-4e4a-a012-ba7a15ae1d4a} -background none -noreset -displayfd>
Mar 30 17:48:59 Tuxy sddm[1324]: Setting default cursor
Mar 30 17:48:59 Tuxy sddm[1324]: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
Mar 30 17:48:59 Tuxy sddm[1324]: Display server started.
Mar 30 17:48:59 Tuxy sddm[1324]: Socket server starting...
Mar 30 17:48:59 Tuxy sddm[1324]: Socket server started.
Mar 30 17:48:59 Tuxy sddm[1324]: Loading theme configuration from "/usr/share/sddm/themes/breath/theme.conf"
Mar 30 17:48:59 Tuxy sddm[1324]: Greeter starting...
Mar 30 17:48:59 Tuxy sddm[1324]: Adding cookie to "/var/run/sddm/{570c7350-590b-4e4a-a012-ba7a15ae1d4a}"
Mar 30 17:48:59 Tuxy sddm-helper[1334]: [PAM] Starting...
Mar 30 17:48:59 Tuxy sddm-helper[1334]: [PAM] Authenticating...
Mar 30 17:48:59 Tuxy sddm-helper[1334]: [PAM] returning.
Mar 30 17:48:59 Tuxy sddm-helper[1334]: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
Mar 30 17:49:00 Tuxy sddm[1324]: Greeter session started successfully
Mar 30 17:49:00 Tuxy sddm[1324]: Message received from greeter: Connect
Mar 30 17:50:55 Tuxy systemd[1]: Stopping Simple Desktop Display Manager...
Mar 30 17:50:55 Tuxy sddm[1324]: Signal received: SIGTERM
Mar 30 17:50:55 Tuxy sddm[1324]: Greeter stopping...
Mar 30 17:50:55 Tuxy sddm[1324]: Socket server stopping...
Mar 30 17:50:55 Tuxy sddm[1324]: Socket server stopped.
Mar 30 17:50:55 Tuxy sddm[1324]: Display server stopping...
Mar 30 17:50:55 Tuxy sddm[1324]: Display server stopped.
Mar 30 17:50:55 Tuxy sddm[1324]: Running display stop script  "/usr/share/sddm/scripts/Xstop"
Mar 30 17:50:55 Tuxy sddm[1324]: Greeter stopping...
Mar 30 17:50:55 Tuxy sddm[1324]: QProcess: Destroyed while process ("/usr/lib/sddm/sddm-helper") is still running.
Mar 30 17:50:55 Tuxy python[1378]: Optimus Manager (DM setup) version 0.8
Mar 30 17:50:55 Tuxy python[1378]: Cleaning up Optimus configuration
Mar 30 17:50:55 Tuxy python[1378]: Removed /etc/X11/xorg.conf.d/10-optimus-manager.conf
Mar 30 17:50:55 Tuxy python[1378]: Reverted /usr/share/sddm/scripts/Xsetup
Mar 30 17:50:55 Tuxy python[1378]: Removed /etc/sddm.conf.d/10-optimus-manager.conf
Mar 30 17:50:55 Tuxy python[1378]: Terminating X11 sessions
Mar 30 17:50:55 Tuxy python[1378]: Killing remaining X11 servers
Mar 30 17:50:55 Tuxy python[1378]: Killing systemd-logind
Mar 30 17:50:55 Tuxy python[1378]: Unloading kernel modules
Mar 30 17:50:55 Tuxy python[1378]: Resetting the GPU
Mar 30 17:50:56 Tuxy systemd[1]: sddm.service: Succeeded.
Mar 30 17:50:56 Tuxy systemd[1]: Stopped Simple Desktop Display Manager.
Mar 30 17:50:57 Tuxy systemd[1]: Starting Simple Desktop Display Manager...
Mar 30 17:50:57 Tuxy python[1392]: Optimus Manager (DM setup) version 0.8
Mar 30 17:50:57 Tuxy python[1392]: Setting up Optimus configuration
Mar 30 17:50:57 Tuxy python[1392]: Reverted /usr/share/sddm/scripts/Xsetup
Mar 30 17:50:57 Tuxy python[1392]: Cannot read requested mode : File /var/lib/optimus-manager/requested_mode not found..
Mar 30 17:50:57 Tuxy python[1392]: Using startup mode instead.
Mar 30 17:50:57 Tuxy python[1392]: Cannot read startup mode : Cannot open or read /var/lib/optimus-manager/startup_mode.
Mar 30 17:50:57 Tuxy python[1392]: Using default startup mode intel instead.
Mar 30 17:50:57 Tuxy python[1392]: Startup mode : intel
Mar 30 17:50:57 Tuxy python[1392]: Requested mode : intel
Mar 30 17:50:57 Tuxy python[1392]: Switching to Intel
Mar 30 17:50:57 Tuxy python[1392]: Unloading Nvidia modules
Mar 30 17:50:57 Tuxy python[1392]: Loading nouveau module
Mar 30 17:50:58 Tuxy python[1392]: Configuring Xorg...
Mar 30 17:50:58 Tuxy python[1392]: Loaded extra Intel Xorg options (0 lines)
Mar 30 17:50:58 Tuxy python[1392]: Loaded extra Nvidia Xorg options (0 lines)
Mar 30 17:50:58 Tuxy python[1392]: Configuring login managers..
Mar 30 17:50:58 Tuxy python[1392]:         Configuring SDDM
Mar 30 17:51:08 Tuxy systemd[1]: Started Simple Desktop Display Manager.
Mar 30 17:51:08 Tuxy sddm[1403]: Initializing...
Mar 30 17:51:08 Tuxy sddm[1403]: Starting...
Mar 30 17:51:08 Tuxy sddm[1403]: Logind interface found
Mar 30 17:51:08 Tuxy sddm[1403]: Adding new display on vt 1 ...
Mar 30 17:51:08 Tuxy sddm[1403]: Loading theme configuration from ""
Mar 30 17:51:08 Tuxy sddm[1403]: Display server starting...
Mar 30 17:51:08 Tuxy sddm[1403]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{0711b3bd-8024-41a3-bd75-a2ce88ccfc06} -background none -noreset -displayfd>
Mar 30 17:51:10 Tuxy sddm[1403]: Setting default cursor
Mar 30 17:51:10 Tuxy sddm[1403]: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
Mar 30 17:51:10 Tuxy sddm[1403]: Display server started.
Mar 30 17:51:10 Tuxy sddm[1403]: Socket server starting...
Mar 30 17:51:10 Tuxy sddm[1403]: Socket server started.
Mar 30 17:51:10 Tuxy sddm[1403]: Loading theme configuration from "/usr/share/sddm/themes/breath/theme.conf"
Mar 30 17:51:10 Tuxy sddm[1403]: Greeter starting...
Mar 30 17:51:10 Tuxy sddm[1403]: Adding cookie to "/var/run/sddm/{0711b3bd-8024-41a3-bd75-a2ce88ccfc06}"
Mar 30 17:51:10 Tuxy sddm-helper[1417]: [PAM] Starting...
Mar 30 17:51:10 Tuxy sddm-helper[1417]: [PAM] Authenticating...
Mar 30 17:51:10 Tuxy sddm-helper[1417]: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
Mar 30 17:51:10 Tuxy sddm-helper[1417]: [PAM] returning.
Mar 30 17:51:10 Tuxy sddm[1403]: Greeter session started successfully
Mar 30 17:51:10 Tuxy sddm[1403]: Message received from greeter: Connect
Mar 30 17:51:14 Tuxy sddm[1403]: Message received from greeter: Login
Mar 30 17:51:14 Tuxy sddm[1403]: Reading from "/usr/share/xsessions/plasma.desktop"
Mar 30 17:51:14 Tuxy sddm[1403]: Reading from "/usr/share/xsessions/plasma.desktop"
Mar 30 17:51:14 Tuxy sddm[1403]: Session "/usr/share/xsessions/plasma.desktop" selected, command: "/usr/bin/startkde"
Mar 30 17:51:14 Tuxy sddm-helper[1426]: [PAM] Starting...
Mar 30 17:51:14 Tuxy sddm-helper[1426]: [PAM] Authenticating...
Mar 30 17:51:14 Tuxy sddm-helper[1426]: [PAM] Preparing to converse...
Mar 30 17:51:14 Tuxy sddm-helper[1426]: [PAM] Conversation with 1 messages
Mar 30 17:51:14 Tuxy sddm-helper[1426]: pam_kwallet5(sddm:auth): (null): pam_sm_authenticate
Mar 30 17:51:14 Tuxy sddm-helper[1426]: [PAM] returning.
Mar 30 17:51:14 Tuxy sddm[1403]: Authenticated successfully
Mar 30 17:51:14 Tuxy sddm-helper[1426]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
Mar 30 17:51:14 Tuxy sddm-helper[1426]: pam_unix(sddm:session): session opened for user loradona by (uid=0)
Mar 30 17:51:14 Tuxy sddm-helper[1426]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_open_session
Mar 30 17:51:14 Tuxy sddm-helper[1426]: Starting: "/usr/share/sddm/scripts/Xsession \"/usr/bin/startkde\""
Mar 30 17:51:14 Tuxy sddm[1403]: Session started
Mar 30 17:51:14 Tuxy sddm[1403]: Auth: sddm-helper exited successfully
Mar 30 17:51:14 Tuxy sddm[1403]: Greeter stopped.

  • Daemon :
[loradona@Tuxy ~]$ journalctl -u optimus-manager -b0
-- Logs begin at Sat 2019-03-30 15:14:06 +03, end at Sat 2019-03-30 16:41:57 +03. --
Mar 30 16:37:24 Tuxy systemd[1]: Started Optimus Manager Commands Daemon.
Mar 30 16:37:25 Tuxy python[514]: Optimus Manager (Daemon) version 0.8
Mar 30 16:37:25 Tuxy python[514]: Awaiting commands
Mar 30 16:37:54 Tuxy python[514]: Received command : nvidia
Mar 30 16:37:54 Tuxy python[514]: Writing requested mode
Mar 30 16:37:54 Tuxy python[514]: Restarting login manager
Mar 30 16:37:54 Tuxy python[514]: Login manager control is disabled, not restarting it.

Xorg:

https://paste.ee/p/NnJVp

Latest tried with without login manager control. Eveythink is same with or without no matter.

FANTASTIC THANK YOU SO MUCH!

This is not an issue actually, i just came to say that im using manjaro with xfce and removed bumblebee files and man this is just fantastic, your project is exactly what i needed i just love it!

Huge performance no harassing anymore, amazing!

Just a question, will i need to do something after an driver update? Thank you so much!

Can't switch back to intel(black screen)

After installing navida driver i encounter two problem.first after booting up with nvidia resolution changed everything get bigger.
Second problem after switching back to intel and everything is black i have to switch to nvidia with the first problem.
I am using manjaro cinnamon .

Cannot switch to Nvidia

Hi, this looks like a great tool, but I'm having trouble with setting it up on my laptop (Toshiba C55-C-1LP).

I've tried to debug it but I have no clue what to do next.

Tried to set DRI to 2, and modeset to no, but it did not make a difference.
Tried to use "bbswitch" in "switching", but still no difference.

I'm using SDDM with i3, but I can't even get to the login screen when Nvidia is selected. Intel works just fine.

Bumblebee is disabled, and system is rebooted, and as a proof that Bumblebee is not active: /proc/acpi/bbswitch does not exist.

Also, I've tried adding exec /usr/bin/optimus-manager_Xsetup to ~/.xinitrc, but no help. I've tried manually to play with xrandr, but I can't connect to the display when SDDM is active. (I could connect to it by doing export DISPLAY=:0 xrandr, when i3 is launched directly (and I did change login_manager to blank when I tested i3 without SDDM))

Specs:

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
09:00.0 3D controller: NVIDIA Corporation GK208BM [GeForce 920M] (rev a1)

Logs:
optimus-manager.service-journalctl.log
Xorg.0.log

I'm happy to provide any other logs or information. 🙂

KDE session sometimes freezes to restart after switch from intel to nvidia

Hello there, using manjaro kde here, after your last update sometimes when i do switch to nvidia the xorg closes and when it restarts kde freezes after display the wheel indicating that its loading, doesnt happens all the time anyways, just reporting to see if maybe there is some issue with the latest release? thanks \o

Allow saving of XFCE sessions (or execution of custom scripts) when switching

Feature request:

It would be lovely if optimus-manager could save my XFCE session before switching GPU, so the programs I had open will automatically reopen.

The only way I know of to do this is to execute:

dbus-send --session --dest=org.xfce.SessionManager --print-reply /org/xfce/SessionManager org.xfce.Session.Manager.Checkpoint string:""

So either implementing some Desktop Environment integration to do this properly across mulitple DEs, or simply providing a way to execute a script before switching would be amazing to have.

GDM not working

Describe the bug
I cant switch to nvidia with nouveau mode. In bbswitch mode I cant turn back to intel 😕

I dont want to use bbswitch tho cuz my hardware not works good with it

**** LightDM with Gnome works but gnome with lightdm doesnt have lockscreen etc. ****

System info
Manjaro
Gnome
GDM

Logs
Please attach the following logs (if you are able to):

When I set modeset=no in nvidia, I can switch to nvidia but I cant back to intel:

Ara 26 23:52:32 Tux python[2183]: Requested mode : intel
Ara 26 23:52:32 Tux python[2183]: Switching to Intel
Ara 26 23:52:32 Tux python[2183]: Unloading Nvidia modules
Ara 26 23:52:32 Tux python[2183]: Cannot switch GPUS : Cannot unload Nvidia modules : Failed to execute 'modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia' : modprobe: FATAL: Module nvidia_drm is in use.
Ara 26 23:52:32 Tux systemd[1]: Started GNOME Display Manager.
Ara 26 23:52:32 Tux gdm-launch-environment][2200]: accountsservice: Could not get current seat: Veri yok
Ara 26 23:52:38 Tux gdm-password][2375]: accountsservice: Could not get current seat: Veri yok
Ara 26 23:52:42 Tux gdm-password][2375]: pam_unix(gdm-password:session): session opened for user loradona by (uid=0)

Set resolution for display manager

I have a laptop with a 4k screen. The login the fonts are real small and hard to read. If I change /usr/share/sddm/scripts/Xsetup I can get a easier to read resolution. But it gets overwritten on the next boot. Would it be possible to add a xrandr command to the setup script? I''m using Manjaro with KDE5 (sddm).

#!/bin/sh
# make login on 4k screen readable
xrandr --output eDP-1-1 --mode 2048x1152
# Xsetup - run as root before the login dialog appears
exec /usr/bin/optimus-manager_Xsetup

Can't switch to nvidia card

Hello, I'm new and I trying to setup optimus-manager. I don't know if I need to install a nvidia driver too.
What can I do?
I followed this repo's tutorial.
I'm using Manjaro Linux 18 with GNOME 3.30.2.
My notebook is HP OMEN 15-ax250wn.
My Graphic cards are Intel® HD Graphics 630 (Kaby Lake GT2) and GForce GTX 1050Ti.

The service is active.

sudo systemctl status optimus-manager.service 
[sudo] password for martin: 
● optimus-manager.service - Optimus Manager Commands Daemon
   Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2019-01-02 17:26:58 -03; 8min ago
 Main PID: 523 (python)
    Tasks: 1 (limit: 4915)
   Memory: 23.6M
   CGroup: /system.slice/optimus-manager.service
           └─523 /usr/bin/python -u /usr/bin/optimus-manager-daemon

ene 02 17:26:58 Meli systemd[1]: Started Optimus Manager Commands Daemon.
ene 02 17:26:58 Meli python[523]: Optimus Manager (Daemon) version 0.5
ene 02 17:26:58 Meli python[523]: Awaiting commands

What i did

optimus-manager --print-mode   
Current mode : intel
optimus-manager --switch nvidia              
WARNING : You are about to switch GPUs. This will restart the display manager and all your applications WILL CLOSE.
(you can pass the --no-confirm option to disable this warning)
Continue ? (y/N)

After login:

optimus-manager --print-mode   
Current mode : intel

The options `tearfree` and `accel` only apply to the intel Xorg driver

The options

# Acceleration method (corresponds to AccelMethod in the Xorg configuration).
# Possible values : sna, xna
# Leave blank for the default (no option specified)
accel=

and

# Enable TearFree option
# Possible values : yes, no
# Leave blank for the default (no option specified)
tearfree=

only apply (at least as they are implemented right now) when using xf86-video-intel.
I think we should include a like like the one bbswitch has for the pci_reset stuff

System info
Arch Linux, Cinnamon, LightDM

Side note: This nice program essentially works with the defaults for me. That says something.
The only option I have set is nvidia triple_buffer, and I might actually get rid of it

Idea: Having an option to switch to nvidia once input is detected (while using bbswitch)

Anyway I noticed that while plugging in HDMI connector on my GTX 960M that it creates an ACPI event (which you can catch using acpid). The event is as follows video/switchmode VMOD 00000080 00000000 (without the K at the end, this makes it different from the switch video output button on laptop keyboards).

Now the idea is to have that as a trigger to switch to an external graphics card while using bbswitch (because loading in nouveau is still using the GPU)

I have made a demo script that will restart the session with the nvidia gpu once an input is detected.
To set this up:

pacman -S acpid unzip wget
wget https://github.com/Askannz/optimus-manager/files/2753325/handler.zip
unzip handler.zip
mv handler.sh /etc/acpi/handler.sh
chmod +x /etc/acpi/handler.sh
systemctl start acpid

Now plug in the HDMI (or any other video input for that matter) and it should work.
If it doesn't, try tracking ACPI events and see if anything happens if you plug in your video input. That way we can try to make it universal across all optimus laptops. Cheers.

EDIT: I forgot to mention that this is indeed a hardwired GPU, there is no way to use the HDMI with the intel driver.

Didn't restart display manager after choose graphic card?

**Didn't restart display manager after choose graphic card and didn't switch the graphic card.

$ journalctl -u optimus-manager -b0 --no-pager
-- Logs begin at Thu 2018-11-08 23:32:11 +07, end at Fri 2018-11-23 12:34:39 +07. --
Nov 23 10:14:59 archlinux systemd[1]: Started Optimus Manager Commands Daemon.
Nov 23 10:15:00 archlinux python[21876]: Optimus Manager (Daemon) version 0.3
Nov 23 10:15:00 archlinux python[21876]: Awaiting commands
Nov 23 10:15:17 archlinux python[21876]: Received command : nvidia
Nov 23 10:15:17 archlinux python[21876]: Writing requested mode
Nov 23 10:15:17 archlinux python[21876]: Restarting login manager
Nov 23 10:15:27 archlinux python[21876]: Cannot restart login manager : Warning : cannot restart service display-manager.
Nov 23 10:15:46 archlinux python[21876]: Received command : nvidia
Nov 23 10:15:46 archlinux python[21876]: Writing requested mode
Nov 23 10:15:46 archlinux python[21876]: Restarting login manager
Nov 23 10:15:56 archlinux python[21876]: Cannot restart login manager : Warning : cannot restart service display-manager.
Nov 23 12:34:29 archlinux python[21876]: Received command : nvidia
Nov 23 12:34:29 archlinux python[21876]: Writing requested mode
Nov 23 12:34:29 archlinux python[21876]: Restarting login manager
Nov 23 12:34:39 archlinux python[21876]: Cannot restart login manager : Warning : cannot restart service display-manager.

$ journalctl -u display-manager -b0 --no-pager
-- Logs begin at Thu 2018-11-08 23:32:11 +07, end at Fri 2018-11-23 12:34:39 +07. --
-- No entries --

$ cat /var/log/Xorg.0.log
[ 1444.712] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[ 1444.712]
X.Org X Server 1.20.3
X Protocol Version 11, Revision 0
[ 1444.712] Build Operating System: Linux Arch Linux
[ 1444.712] Current Operating System: Linux archlinux 4.19.2-arch1-1-ARCH #1 SMP PREEMPT Tue Nov 13 21:16:19 UTC 2018 x86_64
[ 1444.712] Kernel command line: \boot\vmlinuz-linux ro root=/dev/sda3 initrd=boot\initramfs-linux.img
[ 1444.712] Build Date: 25 October 2018 04:42:32PM
[ 1444.712]
[ 1444.712] Current version of pixman: 0.34.0
[ 1444.712] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 1444.712] Markers: (--) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 1444.712] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Nov 23 09:14:08 2018
[ 1444.713] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 1444.713] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 1444.713] (==) No Layout section. Using the first Screen section.
[ 1444.713] (==) No screen section available. Using defaults.
[ 1444.713] (
) |-->Screen "Default Screen Section" (0)
[ 1444.713] (**) | |-->Monitor ""
[ 1444.713] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 1444.713] (==) Automatically adding devices
[ 1444.713] (==) Automatically enabling devices
[ 1444.713] (==) Automatically adding GPU devices
[ 1444.713] (==) Automatically binding GPU devices
[ 1444.713] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 1444.713] (WW) The directory "/usr/share/fonts/misc" does not exist.
[ 1444.713] Entry deleted from font path.
[ 1444.713] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 1444.713] Entry deleted from font path.
[ 1444.713] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 1444.713] Entry deleted from font path.
[ 1444.713] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[ 1444.713] Entry deleted from font path.
[ 1444.713] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[ 1444.713] Entry deleted from font path.
[ 1444.713] (==) FontPath set to:
/usr/share/fonts/TTF
[ 1444.713] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 1444.713] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 1444.713] (II) Module ABI versions:
[ 1444.713] X.Org ANSI C Emulation: 0.4
[ 1444.713] X.Org Video Driver: 24.0
[ 1444.713] X.Org XInput driver : 24.1
[ 1444.713] X.Org Server Extension : 10.0
[ 1444.714] (++) using VT number 1

[ 1444.715] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_34
[ 1444.716] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 1444.716] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 10 paused 0
[ 1444.716] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 1444.717] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[ 1444.718] (--) PCI:*(0@0:2:0) 8086:3e9b:1028:086f rev 0, Mem @ 0xa2000000/16777216, 0x80000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[ 1444.719] (--) PCI: (1@0:0:0) 10de:1c8c:1028:086f rev 161, Mem @ 0xa3000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288
[ 1444.719] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 1444.719] (II) LoadModule: "glx"
[ 1444.719] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 1444.720] (II) Module glx: vendor="X.Org Foundation"
[ 1444.720] compiled for 1.20.3, module version = 1.0.0
[ 1444.720] ABI class: X.Org Server Extension, version 10.0
[ 1444.720] (==) Matched intel as autoconfigured driver 0
[ 1444.720] (==) Matched nouveau as autoconfigured driver 1
[ 1444.720] (==) Matched nv as autoconfigured driver 2
[ 1444.720] (==) Matched modesetting as autoconfigured driver 3
[ 1444.720] (==) Matched fbdev as autoconfigured driver 4
[ 1444.720] (==) Matched vesa as autoconfigured driver 5
[ 1444.720] (==) Assigned the driver to the xf86ConfigLayout
[ 1444.720] (II) LoadModule: "intel"
[ 1444.720] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 1444.720] (II) Module intel: vendor="X.Org Foundation"
[ 1444.720] compiled for 1.20.3, module version = 2.99.917
[ 1444.720] Module class: X.Org Video Driver
[ 1444.720] ABI class: X.Org Video Driver, version 24.0
[ 1444.720] (II) LoadModule: "nouveau"
[ 1444.720] (WW) Warning, couldn't open module nouveau
[ 1444.720] (EE) Failed to load module "nouveau" (module does not exist, 0)
[ 1444.720] (II) LoadModule: "nv"
[ 1444.720] (WW) Warning, couldn't open module nv
[ 1444.720] (EE) Failed to load module "nv" (module does not exist, 0)
[ 1444.720] (II) LoadModule: "modesetting"
[ 1444.720] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 1444.721] (II) Module modesetting: vendor="X.Org Foundation"
[ 1444.721] compiled for 1.20.3, module version = 1.20.3
[ 1444.721] Module class: X.Org Video Driver
[ 1444.721] ABI class: X.Org Video Driver, version 24.0
[ 1444.721] (II) LoadModule: "fbdev"
[ 1444.721] (WW) Warning, couldn't open module fbdev
[ 1444.721] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 1444.721] (II) LoadModule: "vesa"
[ 1444.721] (WW) Warning, couldn't open module vesa
[ 1444.721] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 1444.721] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 1444.721] (II) intel: Driver for Intel(R) HD Graphics
[ 1444.721] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[ 1444.721] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[ 1444.721] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 1444.721] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20180719
[ 1444.721] (II) intel(0): SNA compiled from 2.99.917-855-g746ab3bb
[ 1444.738] (WW) Falling back to old probe method for modesetting
[ 1444.738] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics
[ 1444.738] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2; using a maximum of 6 threads
[ 1444.738] (II) intel(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 1444.738] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[ 1444.738] (==) intel(0): RGB weight 888
[ 1444.738] (==) intel(0): Default visual is TrueColor
[ 1444.739] (II) intel(0): Output eDP1 has no monitor section
[ 1444.739] () intel(0): Found backlight control interface intel_backlight (type 'raw') for output eDP1
[ 1444.739] (II) intel(0): Enabled output eDP1
[ 1444.739] (II) intel(0): Output DP1 has no monitor section
[ 1444.739] (II) intel(0): Enabled output DP1
[ 1444.739] (II) intel(0): Output HDMI1 has no monitor section
[ 1444.739] (II) intel(0): Enabled output HDMI1
[ 1444.739] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[ 1444.739] (II) intel(0): Output VIRTUAL1 has no monitor section
[ 1444.739] (II) intel(0): Enabled output VIRTUAL1
[ 1444.739] (--) intel(0): Output eDP1 using initial mode 1920x1080 on pipe 0
[ 1444.739] (==) intel(0): TearFree enabled
[ 1444.739] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[ 1444.739] (==) intel(0): DPI set to (96, 96)
[ 1444.739] (II) Loading sub module "dri3"
[ 1444.739] (II) LoadModule: "dri3"
[ 1444.739] (II) Module "dri3" already built-in
[ 1444.739] (II) Loading sub module "dri2"
[ 1444.739] (II) LoadModule: "dri2"
[ 1444.739] (II) Module "dri2" already built-in
[ 1444.739] (II) Loading sub module "present"
[ 1444.739] (II) LoadModule: "present"
[ 1444.739] (II) Module "present" already built-in
[ 1444.740] (II) intel(0): SNA initialized with Coffeelake (gen9) backend
[ 1444.740] (==) intel(0): Backing store enabled
[ 1444.740] (==) intel(0): Silken mouse disabled
[ 1444.740] (II) intel(0): HW Cursor enabled
[ 1444.740] (==) intel(0): DPMS enabled
[ 1444.740] (==) intel(0): Display hotplug detection enabled
[ 1444.740] (II) intel(0): [DRI2] Setup complete
[ 1444.740] (II) intel(0): [DRI2] DRI driver: i965
[ 1444.740] (II) intel(0): [DRI2] VDPAU driver: va_gl
[ 1444.740] (II) intel(0): direct rendering: DRI2 DRI3 enabled
[ 1444.740] (II) intel(0): hardware support for Present enabled
[ 1444.740] (II) Initializing extension Generic Event Extension
[ 1444.740] (II) Initializing extension SHAPE
[ 1444.740] (II) Initializing extension MIT-SHM
[ 1444.740] (II) Initializing extension XInputExtension
[ 1444.740] (II) Initializing extension XTEST
[ 1444.740] (II) Initializing extension BIG-REQUESTS
[ 1444.740] (II) Initializing extension SYNC
[ 1444.740] (II) Initializing extension XKEYBOARD
[ 1444.740] (II) Initializing extension XC-MISC
[ 1444.740] (II) Initializing extension SECURITY
[ 1444.740] (II) Initializing extension XFIXES
[ 1444.740] (II) Initializing extension RENDER
[ 1444.740] (II) Initializing extension RANDR
[ 1444.740] (II) Initializing extension COMPOSITE
[ 1444.740] (II) Initializing extension DAMAGE
[ 1444.740] (II) Initializing extension MIT-SCREEN-SAVER
[ 1444.740] (II) Initializing extension DOUBLE-BUFFER
[ 1444.740] (II) Initializing extension RECORD
[ 1444.740] (II) Initializing extension DPMS
[ 1444.740] (II) Initializing extension Present
[ 1444.740] (II) Initializing extension DRI3
[ 1444.740] (II) Initializing extension X-Resource
[ 1444.740] (II) Initializing extension XVideo
[ 1444.740] (II) Initializing extension XVideo-MotionCompensation
[ 1444.740] (II) Initializing extension GLX
[ 1444.751] (II) AIGLX: Loaded and initialized i965
[ 1444.751] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 1444.751] (II) Initializing extension XFree86-VidModeExtension
[ 1444.751] (II) Initializing extension XFree86-DGA
[ 1444.751] (II) Initializing extension XFree86-DRI
[ 1444.751] (II) Initializing extension DRI2
[ 1444.754] (II) intel(0): switch to mode [email protected] on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[ 1444.758] (II) intel(0): Setting screen physical size to 508 x 285
[ 1444.791] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[ 1444.791] (
) Power Button: Applying InputClass "libinput keyboard catchall"
[ 1444.791] () Power Button: Applying InputClass "libinput keyboard catchall"
[ 1444.791] (II) LoadModule: "libinput"
[ 1444.791] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[ 1444.791] (II) Module libinput: vendor="X.Org Foundation"
[ 1444.791] compiled for 1.20.1, module version = 0.28.1
[ 1444.791] Module class: X.Org XInput Driver
[ 1444.791] ABI class: X.Org XInput driver, version 24.1
[ 1444.791] (II) Using input driver 'libinput' for 'Power Button'
[ 1444.792] (II) systemd-logind: got fd for /dev/input/event3 13:67 fd 19 paused 0
[ 1444.792] (
) Power Button: always reports core events
[ 1444.792] () Option "Device" "/dev/input/event3"
[ 1444.792] (
) Option "_source" "server/udev"
[ 1444.793] (II) event3 - Power Button: is tagged by udev as: Keyboard
[ 1444.793] (II) event3 - Power Button: device is a keyboard
[ 1444.793] (II) event3 - Power Button: device removed
[ 1444.793] () Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3/event3"
[ 1444.793] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[ 1444.793] (II) event3 - Power Button: is tagged by udev as: Keyboard
[ 1444.793] (II) event3 - Power Button: device is a keyboard
[ 1444.793] (II) config/udev: Adding input device Video Bus (/dev/input/event11)
[ 1444.793] (
) Video Bus: Applying InputClass "libinput keyboard catchall"
[ 1444.793] () Video Bus: Applying InputClass "libinput keyboard catchall"
[ 1444.793] (II) Using input driver 'libinput' for 'Video Bus'
[ 1444.794] (II) systemd-logind: got fd for /dev/input/event11 13:75 fd 22 paused 0
[ 1444.794] (
) Video Bus: always reports core events
[ 1444.794] () Option "Device" "/dev/input/event11"
[ 1444.794] (
) Option "_source" "server/udev"
[ 1444.794] (II) event11 - Video Bus: is tagged by udev as: Keyboard
[ 1444.794] (II) event11 - Video Bus: device is a keyboard
[ 1444.794] (II) event11 - Video Bus: device removed
[ 1444.794] () Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input22/event11"
[ 1444.794] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[ 1444.795] (II) event11 - Video Bus: is tagged by udev as: Keyboard
[ 1444.795] (II) event11 - Video Bus: device is a keyboard
[ 1444.795] (II) config/udev: Adding input device Video Bus (/dev/input/event16)
[ 1444.795] (
) Video Bus: Applying InputClass "libinput keyboard catchall"
[ 1444.795] () Video Bus: Applying InputClass "libinput keyboard catchall"
[ 1444.795] (II) Using input driver 'libinput' for 'Video Bus'
[ 1444.795] (II) systemd-logind: got fd for /dev/input/event16 13:80 fd 23 paused 0
[ 1444.795] (
) Video Bus: always reports core events
[ 1444.795] () Option "Device" "/dev/input/event16"
[ 1444.795] (
) Option "_source" "server/udev"
[ 1444.796] (II) event16 - Video Bus: is tagged by udev as: Keyboard
[ 1444.796] (II) event16 - Video Bus: device is a keyboard
[ 1444.796] (II) event16 - Video Bus: device removed
[ 1444.796] () Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:0b/LNXVIDEO:01/input/input23/event16"
[ 1444.796] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[ 1444.796] (II) event16 - Video Bus: is tagged by udev as: Keyboard
[ 1444.796] (II) event16 - Video Bus: device is a keyboard
[ 1444.797] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[ 1444.797] (
) Power Button: Applying InputClass "libinput keyboard catchall"
[ 1444.797] () Power Button: Applying InputClass "libinput keyboard catchall"
[ 1444.797] (II) Using input driver 'libinput' for 'Power Button'
[ 1444.797] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 24 paused 0
[ 1444.797] (
) Power Button: always reports core events
[ 1444.797] () Option "Device" "/dev/input/event1"
[ 1444.797] (
) Option "_source" "server/udev"
[ 1444.797] (II) event1 - Power Button: is tagged by udev as: Keyboard
[ 1444.797] (II) event1 - Power Button: device is a keyboard
[ 1444.797] (II) event1 - Power Button: device removed
[ 1444.798] () Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1/event1"
[ 1444.798] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[ 1444.798] (II) event1 - Power Button: is tagged by udev as: Keyboard
[ 1444.798] (II) event1 - Power Button: device is a keyboard
[ 1444.798] (II) config/udev: Adding input device Lid Switch (/dev/input/event0)
[ 1444.798] (II) No input driver specified, ignoring this device.
[ 1444.798] (II) This device may have been added with another device file.
[ 1444.798] (II) config/udev: Adding input device Sleep Button (/dev/input/event2)
[ 1444.798] (
) Sleep Button: Applying InputClass "libinput keyboard catchall"
[ 1444.798] () Sleep Button: Applying InputClass "libinput keyboard catchall"
[ 1444.798] (II) Using input driver 'libinput' for 'Sleep Button'
[ 1444.799] (II) systemd-logind: got fd for /dev/input/event2 13:66 fd 25 paused 0
[ 1444.799] (
) Sleep Button: always reports core events
[ 1444.799] () Option "Device" "/dev/input/event2"
[ 1444.799] (
) Option "_source" "server/udev"
[ 1444.799] (II) event2 - Sleep Button: is tagged by udev as: Keyboard
[ 1444.799] (II) event2 - Sleep Button: device is a keyboard
[ 1444.799] (II) event2 - Sleep Button: device removed
[ 1444.799] () Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input2/event2"
[ 1444.799] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 10)
[ 1444.800] (II) event2 - Sleep Button: is tagged by udev as: Keyboard
[ 1444.800] (II) event2 - Sleep Button: device is a keyboard
[ 1444.800] (II) config/udev: Adding input device Microsoft Microsoft Nano Transceiver 1.1 (/dev/input/event5)
[ 1444.800] (
) Microsoft Microsoft Nano Transceiver 1.1: Applying InputClass "libinput keyboard catchall"
[ 1444.800] () Microsoft Microsoft Nano Transceiver 1.1: Applying InputClass "libinput keyboard catchall"
[ 1444.800] (II) Using input driver 'libinput' for 'Microsoft Microsoft Nano Transceiver 1.1'
[ 1444.801] (II) systemd-logind: got fd for /dev/input/event5 13:69 fd 26 paused 0
[ 1444.801] (
) Microsoft Microsoft Nano Transceiver 1.1: always reports core events
[ 1444.801] () Option "Device" "/dev/input/event5"
[ 1444.801] (
) Option "_source" "server/udev"
[ 1444.801] (II) event5 - Microsoft Microsoft Nano Transceiver 1.1: is tagged by udev as: Keyboard
[ 1444.801] (II) event5 - Microsoft Microsoft Nano Transceiver 1.1: device is a keyboard
[ 1444.801] (II) event5 - Microsoft Microsoft Nano Transceiver 1.1: device removed
[ 1444.801] () Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003:045E:07FD.0001/input/input6/event5"
[ 1444.801] (II) XINPUT: Adding extended input device "Microsoft Microsoft Nano Transceiver 1.1" (type: KEYBOARD, id 11)
[ 1444.802] (II) event5 - Microsoft Microsoft Nano Transceiver 1.1: is tagged by udev as: Keyboard
[ 1444.802] (II) event5 - Microsoft Microsoft Nano Transceiver 1.1: device is a keyboard
[ 1444.802] (II) config/udev: Adding input device Microsoft Microsoft Nano Transceiver 1.1 Consumer Control (/dev/input/event6)
[ 1444.802] (
) Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: Applying InputClass "libinput keyboard catchall"
[ 1444.802] () Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: Applying InputClass "libinput keyboard catchall"
[ 1444.802] (II) Using input driver 'libinput' for 'Microsoft Microsoft Nano Transceiver 1.1 Consumer Control'
[ 1444.803] (II) systemd-logind: got fd for /dev/input/event6 13:70 fd 27 paused 0
[ 1444.803] (
) Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: always reports core events
[ 1444.803] () Option "Device" "/dev/input/event6"
[ 1444.803] (
) Option "_source" "server/udev"
[ 1444.803] (II) event6 - Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: is tagged by udev as: Keyboard
[ 1444.803] (II) event6 - Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: device is a keyboard
[ 1444.804] (II) event6 - Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: device removed
[ 1444.804] (II) libinput: Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: needs a virtual subdevice
[ 1444.804] () Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:045E:07FD.0002/input/input7/event6"
[ 1444.804] (II) XINPUT: Adding extended input device "Microsoft Microsoft Nano Transceiver 1.1 Consumer Control" (type: MOUSE, id 12)
[ 1444.804] (
) Option "AccelerationScheme" "none"
[ 1444.804] () Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: (accel) selected scheme none/0
[ 1444.804] (
) Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: (accel) acceleration factor: 2.000
[ 1444.804] () Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: (accel) acceleration threshold: 4
[ 1444.804] (II) event6 - Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: is tagged by udev as: Keyboard
[ 1444.804] (II) event6 - Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: device is a keyboard
[ 1444.805] (II) config/udev: Adding input device Microsoft Microsoft Nano Transceiver 1.1 System Control (/dev/input/event7)
[ 1444.805] (
) Microsoft Microsoft Nano Transceiver 1.1 System Control: Applying InputClass "libinput keyboard catchall"
[ 1444.805] () Microsoft Microsoft Nano Transceiver 1.1 System Control: Applying InputClass "libinput keyboard catchall"
[ 1444.805] (II) Using input driver 'libinput' for 'Microsoft Microsoft Nano Transceiver 1.1 System Control'
[ 1444.805] (II) systemd-logind: got fd for /dev/input/event7 13:71 fd 28 paused 0
[ 1444.805] (
) Microsoft Microsoft Nano Transceiver 1.1 System Control: always reports core events
[ 1444.805] () Option "Device" "/dev/input/event7"
[ 1444.805] (
) Option "_source" "server/udev"
[ 1444.806] (II) event7 - Microsoft Microsoft Nano Transceiver 1.1 System Control: is tagged by udev as: Keyboard
[ 1444.806] (II) event7 - Microsoft Microsoft Nano Transceiver 1.1 System Control: device is a keyboard
[ 1444.806] (II) event7 - Microsoft Microsoft Nano Transceiver 1.1 System Control: device removed
[ 1444.806] () Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:045E:07FD.0002/input/input8/event7"
[ 1444.806] (II) XINPUT: Adding extended input device "Microsoft Microsoft Nano Transceiver 1.1 System Control" (type: KEYBOARD, id 13)
[ 1444.807] (II) event7 - Microsoft Microsoft Nano Transceiver 1.1 System Control: is tagged by udev as: Keyboard
[ 1444.807] (II) event7 - Microsoft Microsoft Nano Transceiver 1.1 System Control: device is a keyboard
[ 1444.807] (II) config/udev: Adding input device Microsoft Microsoft Nano Transceiver 1.1 (/dev/input/event8)
[ 1444.807] (
) Microsoft Microsoft Nano Transceiver 1.1: Applying InputClass "libinput keyboard catchall"
[ 1444.807] () Microsoft Microsoft Nano Transceiver 1.1: Applying InputClass "libinput keyboard catchall"
[ 1444.807] (II) Using input driver 'libinput' for 'Microsoft Microsoft Nano Transceiver 1.1'
[ 1444.807] (II) systemd-logind: got fd for /dev/input/event8 13:72 fd 29 paused 0
[ 1444.807] (
) Microsoft Microsoft Nano Transceiver 1.1: always reports core events
[ 1444.807] () Option "Device" "/dev/input/event8"
[ 1444.807] (
) Option "_source" "server/udev"
[ 1444.808] (II) event8 - Microsoft Microsoft Nano Transceiver 1.1: is tagged by udev as: Keyboard
[ 1444.808] (II) event8 - Microsoft Microsoft Nano Transceiver 1.1: device is a keyboard
[ 1444.808] (II) event8 - Microsoft Microsoft Nano Transceiver 1.1: device removed
[ 1444.808] () Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:045E:07FD.0002/input/input9/event8"
[ 1444.808] (II) XINPUT: Adding extended input device "Microsoft Microsoft Nano Transceiver 1.1" (type: KEYBOARD, id 14)
[ 1444.809] (II) event8 - Microsoft Microsoft Nano Transceiver 1.1: is tagged by udev as: Keyboard
[ 1444.809] (II) event8 - Microsoft Microsoft Nano Transceiver 1.1: device is a keyboard
[ 1444.809] (II) config/udev: Adding input device Microsoft Microsoft Nano Transceiver 1.1 (/dev/input/event9)
[ 1444.809] (
) Microsoft Microsoft Nano Transceiver 1.1: Applying InputClass "libinput pointer catchall"
[ 1444.809] () Microsoft Microsoft Nano Transceiver 1.1: Applying InputClass "libinput pointer catchall"
[ 1444.809] (II) Using input driver 'libinput' for 'Microsoft Microsoft Nano Transceiver 1.1'
[ 1444.864] (II) systemd-logind: got fd for /dev/input/event9 13:73 fd 30 paused 0
[ 1444.864] (
) Microsoft Microsoft Nano Transceiver 1.1: always reports core events
[ 1444.864] () Option "Device" "/dev/input/event9"
[ 1444.864] (
) Option "_source" "server/udev"
[ 1444.865] (II) event9 - Microsoft Microsoft Nano Transceiver 1.1: is tagged by udev as: Mouse
[ 1444.865] (II) event9 - Microsoft Microsoft Nano Transceiver 1.1: device is a pointer
[ 1444.865] (II) event9 - Microsoft Microsoft Nano Transceiver 1.1: device removed
[ 1444.865] () Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/0003:045E:07FD.0003/input/input10/event9"
[ 1444.865] (II) XINPUT: Adding extended input device "Microsoft Microsoft Nano Transceiver 1.1" (type: MOUSE, id 15)
[ 1444.866] (
) Option "AccelerationScheme" "none"
[ 1444.866] () Microsoft Microsoft Nano Transceiver 1.1: (accel) selected scheme none/0
[ 1444.866] (
) Microsoft Microsoft Nano Transceiver 1.1: (accel) acceleration factor: 2.000
[ 1444.866] () Microsoft Microsoft Nano Transceiver 1.1: (accel) acceleration threshold: 4
[ 1444.867] (II) event9 - Microsoft Microsoft Nano Transceiver 1.1: is tagged by udev as: Mouse
[ 1444.867] (II) event9 - Microsoft Microsoft Nano Transceiver 1.1: device is a pointer
[ 1444.868] (II) config/udev: Adding input device Microsoft Microsoft Nano Transceiver 1.1 (/dev/input/mouse0)
[ 1444.868] (II) No input driver specified, ignoring this device.
[ 1444.868] (II) This device may have been added with another device file.
[ 1444.869] (II) config/udev: Adding input device DELL086F:00 06CB:7E92 Touchpad (/dev/input/event10)
[ 1444.869] (
) DELL086F:00 06CB:7E92 Touchpad: Applying InputClass "libinput touchpad catchall"
[ 1444.869] () DELL086F:00 06CB:7E92 Touchpad: Applying InputClass "touchpad"
[ 1444.869] (
) DELL086F:00 06CB:7E92 Touchpad: Applying InputClass "libinput touchpad catchall"
[ 1444.869] (II) Using input driver 'libinput' for 'DELL086F:00 06CB:7E92 Touchpad'
[ 1444.871] (II) systemd-logind: got fd for /dev/input/event10 13:74 fd 31 paused 0
[ 1444.871] () DELL086F:00 06CB:7E92 Touchpad: always reports core events
[ 1444.871] (
) Option "Device" "/dev/input/event10"
[ 1444.871] () Option "_source" "server/udev"
[ 1444.872] (II) event10 - DELL086F:00 06CB:7E92 Touchpad: is tagged by udev as: Touchpad
[ 1444.873] (II) event10 - DELL086F:00 06CB:7E92 Touchpad: device is a touchpad
[ 1444.873] (II) event10 - DELL086F:00 06CB:7E92 Touchpad: device removed
[ 1444.873] (
) Option "Tapping" "on"
[ 1444.873] () Option "TappingButtonMap" "lrm"
[ 1444.873] (
) Option "NaturalScrolling" "true"
[ 1444.873] () Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-2/i2c-DELL086F:00/0018:06CB:7E92.0004/input/input19/event10"
[ 1444.873] (II) XINPUT: Adding extended input device "DELL086F:00 06CB:7E92 Touchpad" (type: TOUCHPAD, id 16)
[ 1444.874] (
) Option "AccelerationScheme" "none"
[ 1444.874] () DELL086F:00 06CB:7E92 Touchpad: (accel) selected scheme none/0
[ 1444.874] (
) DELL086F:00 06CB:7E92 Touchpad: (accel) acceleration factor: 2.000
[ 1444.874] () DELL086F:00 06CB:7E92 Touchpad: (accel) acceleration threshold: 4
[ 1444.876] (II) event10 - DELL086F:00 06CB:7E92 Touchpad: is tagged by udev as: Touchpad
[ 1444.876] (II) event10 - DELL086F:00 06CB:7E92 Touchpad: device is a touchpad
[ 1444.878] (II) config/udev: Adding input device DELL086F:00 06CB:7E92 Touchpad (/dev/input/mouse1)
[ 1444.878] (
) DELL086F:00 06CB:7E92 Touchpad: Applying InputClass "touchpad"
[ 1444.878] (II) Using input driver 'libinput' for 'DELL086F:00 06CB:7E92 Touchpad'
[ 1444.878] () DELL086F:00 06CB:7E92 Touchpad: always reports core events
[ 1444.878] (
) Option "Device" "/dev/input/mouse1"
[ 1444.878] () Option "_source" "server/udev"
[ 1444.934] (II) mouse1 - failed to create input device '/dev/input/mouse1'.
[ 1444.934] (EE) libinput: DELL086F:00 06CB:7E92 Touchpad: Failed to create a device for /dev/input/mouse1
[ 1444.934] (EE) PreInit returned 2 for "DELL086F:00 06CB:7E92 Touchpad"
[ 1444.934] (II) UnloadModule: "libinput"
[ 1444.935] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event17)
[ 1444.935] (II) No input driver specified, ignoring this device.
[ 1444.935] (II) This device may have been added with another device file.
[ 1444.935] (II) config/udev: Adding input device HDA Intel PCH Headphone Mic (/dev/input/event18)
[ 1444.935] (II) No input driver specified, ignoring this device.
[ 1444.936] (II) This device may have been added with another device file.
[ 1444.936] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event19)
[ 1444.936] (II) No input driver specified, ignoring this device.
[ 1444.936] (II) This device may have been added with another device file.
[ 1444.937] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=7 (/dev/input/event20)
[ 1444.937] (II) No input driver specified, ignoring this device.
[ 1444.937] (II) This device may have been added with another device file.
[ 1444.938] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=8 (/dev/input/event21)
[ 1444.938] (II) No input driver specified, ignoring this device.
[ 1444.938] (II) This device may have been added with another device file.
[ 1444.939] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=9 (/dev/input/event22)
[ 1444.939] (II) No input driver specified, ignoring this device.
[ 1444.939] (II) This device may have been added with another device file.
[ 1444.940] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=10 (/dev/input/event23)
[ 1444.940] (II) No input driver specified, ignoring this device.
[ 1444.940] (II) This device may have been added with another device file.
[ 1444.941] (II) config/udev: Adding input device Intel HID events (/dev/input/event12)
[ 1444.941] (
) Intel HID events: Applying InputClass "libinput keyboard catchall"
[ 1444.941] () Intel HID events: Applying InputClass "libinput keyboard catchall"
[ 1444.941] (II) Using input driver 'libinput' for 'Intel HID events'
[ 1444.942] (II) systemd-logind: got fd for /dev/input/event12 13:76 fd 32 paused 0
[ 1444.942] (
) Intel HID events: always reports core events
[ 1444.942] () Option "Device" "/dev/input/event12"
[ 1444.942] (
) Option "_source" "server/udev"
[ 1444.944] (II) event12 - Intel HID events: is tagged by udev as: Keyboard
[ 1444.944] (II) event12 - Intel HID events: device is a keyboard
[ 1444.944] (II) event12 - Intel HID events: device removed
[ 1444.944] () Option "config_info" "udev:/sys/devices/platform/INT33D5:00/input/input14/event12"
[ 1444.944] (II) XINPUT: Adding extended input device "Intel HID events" (type: KEYBOARD, id 17)
[ 1444.946] (II) event12 - Intel HID events: is tagged by udev as: Keyboard
[ 1444.946] (II) event12 - Intel HID events: device is a keyboard
[ 1444.947] (II) config/udev: Adding input device Intel HID 5 button array (/dev/input/event13)
[ 1444.947] (
) Intel HID 5 button array: Applying InputClass "libinput keyboard catchall"
[ 1444.947] () Intel HID 5 button array: Applying InputClass "libinput keyboard catchall"
[ 1444.947] (II) Using input driver 'libinput' for 'Intel HID 5 button array'
[ 1444.949] (II) systemd-logind: got fd for /dev/input/event13 13:77 fd 33 paused 0
[ 1444.949] (
) Intel HID 5 button array: always reports core events
[ 1444.949] () Option "Device" "/dev/input/event13"
[ 1444.949] (
) Option "_source" "server/udev"
[ 1444.950] (II) event13 - Intel HID 5 button array: is tagged by udev as: Keyboard
[ 1444.950] (II) event13 - Intel HID 5 button array: device is a keyboard
[ 1444.950] (II) event13 - Intel HID 5 button array: device removed
[ 1444.950] () Option "config_info" "udev:/sys/devices/platform/INT33D5:00/input/input15/event13"
[ 1444.950] (II) XINPUT: Adding extended input device "Intel HID 5 button array" (type: KEYBOARD, id 18)
[ 1444.952] (II) event13 - Intel HID 5 button array: is tagged by udev as: Keyboard
[ 1444.952] (II) event13 - Intel HID 5 button array: device is a keyboard
[ 1444.953] (II) config/udev: Adding input device Dell WMI hotkeys (/dev/input/event15)
[ 1444.953] (
) Dell WMI hotkeys: Applying InputClass "libinput keyboard catchall"
[ 1444.954] () Dell WMI hotkeys: Applying InputClass "libinput keyboard catchall"
[ 1444.954] (II) Using input driver 'libinput' for 'Dell WMI hotkeys'
[ 1444.955] (II) systemd-logind: got fd for /dev/input/event15 13:79 fd 34 paused 0
[ 1444.955] (
) Dell WMI hotkeys: always reports core events
[ 1444.955] () Option "Device" "/dev/input/event15"
[ 1444.955] (
) Option "_source" "server/udev"
[ 1444.957] (II) event15 - Dell WMI hotkeys: is tagged by udev as: Keyboard
[ 1444.957] (II) event15 - Dell WMI hotkeys: device is a keyboard
[ 1444.957] (II) event15 - Dell WMI hotkeys: device removed
[ 1444.957] () Option "config_info" "udev:/sys/devices/platform/PNP0C14:05/wmi_bus/wmi_bus-PNP0C14:05/9DBB5994-A997-11DA-B012-B622A1EF5492/input/input17/event15"
[ 1444.957] (II) XINPUT: Adding extended input device "Dell WMI hotkeys" (type: KEYBOARD, id 19)
[ 1444.960] (II) event15 - Dell WMI hotkeys: is tagged by udev as: Keyboard
[ 1444.960] (II) event15 - Dell WMI hotkeys: device is a keyboard
[ 1444.961] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event4)
[ 1444.961] (
) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[ 1444.961] () AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[ 1444.961] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[ 1444.962] (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 35 paused 0
[ 1444.962] (
) AT Translated Set 2 keyboard: always reports core events
[ 1444.962] () Option "Device" "/dev/input/event4"
[ 1444.962] (
) Option "_source" "server/udev"
[ 1444.964] (II) event4 - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[ 1444.964] (II) event4 - AT Translated Set 2 keyboard: device is a keyboard
[ 1444.965] (II) event4 - AT Translated Set 2 keyboard: device removed
[ 1444.965] () Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input4/event4"
[ 1444.965] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 20)
[ 1444.967] (II) event4 - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[ 1444.967] (II) event4 - AT Translated Set 2 keyboard: device is a keyboard
[ 1444.969] (II) config/udev: Adding input device PC Speaker (/dev/input/event14)
[ 1444.969] (II) No input driver specified, ignoring this device.
[ 1444.969] (II) This device may have been added with another device file.
[ 1444.992] (
) Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: Applying InputClass "libinput keyboard catchall"
[ 1444.992] () Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: Applying InputClass "libinput keyboard catchall"
[ 1444.992] (II) Using input driver 'libinput' for 'Microsoft Microsoft Nano Transceiver 1.1 Consumer Control'
[ 1444.992] (II) systemd-logind: returning pre-existing fd for /dev/input/event6 13:70
[ 1444.992] (
) Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: always reports core events
[ 1444.992] () Option "Device" "/dev/input/event6"
[ 1444.992] (
) Option "_source" "_driver/libinput"
[ 1444.992] (II) libinput: Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: is a virtual subdevice
[ 1444.992] () Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:045E:07FD.0002/input/input7/event6"
[ 1444.992] (II) XINPUT: Adding extended input device "Microsoft Microsoft Nano Transceiver 1.1 Consumer Control" (type: KEYBOARD, id 21)
[ 1446.742] (II) intel(0): EDID vendor "LGD", prod id 1343
[ 1446.742] (II) intel(0): Printing DDC gathered Modelines:
[ 1446.742] (II) intel(0): Modeline "1920x1080"x0.0 138.70 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync (66.7 kHz eP)
[ 1446.742] (II) intel(0): Modeline "1920x1080"x0.0 111.00 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync (53.4 kHz e)
[ 1449.387] (
) Option "fd" "19"
[ 1449.387] (II) event3 - Power Button: device removed
[ 1449.387] () Option "fd" "22"
[ 1449.387] (II) event11 - Video Bus: device removed
[ 1449.387] (
) Option "fd" "23"
[ 1449.387] (II) event16 - Video Bus: device removed
[ 1449.387] () Option "fd" "24"
[ 1449.387] (II) event1 - Power Button: device removed
[ 1449.387] (
) Option "fd" "25"
[ 1449.387] (II) event2 - Sleep Button: device removed
[ 1449.387] () Option "fd" "26"
[ 1449.387] (II) event5 - Microsoft Microsoft Nano Transceiver 1.1: device removed
[ 1449.387] (
) Option "fd" "27"
[ 1449.387] () Option "fd" "28"
[ 1449.387] (II) event7 - Microsoft Microsoft Nano Transceiver 1.1 System Control: device removed
[ 1449.387] (
) Option "fd" "29"
[ 1449.387] (II) event8 - Microsoft Microsoft Nano Transceiver 1.1: device removed
[ 1449.387] () Option "fd" "30"
[ 1449.387] (II) event9 - Microsoft Microsoft Nano Transceiver 1.1: device removed
[ 1449.388] (
) Option "fd" "31"
[ 1449.388] (II) event10 - DELL086F:00 06CB:7E92 Touchpad: device removed
[ 1449.388] () Option "fd" "32"
[ 1449.388] (II) event12 - Intel HID events: device removed
[ 1449.388] (
) Option "fd" "33"
[ 1449.388] (II) event13 - Intel HID 5 button array: device removed
[ 1449.388] () Option "fd" "34"
[ 1449.388] (II) event15 - Dell WMI hotkeys: device removed
[ 1449.388] (
) Option "fd" "35"
[ 1449.388] (II) event4 - AT Translated Set 2 keyboard: device removed
[ 1449.388] () Option "fd" "27"
[ 1449.388] (II) event6 - Microsoft Microsoft Nano Transceiver 1.1 Consumer Control: device removed
[ 1449.388] (II) UnloadModule: "libinput"
[ 1449.388] (II) systemd-logind: not releasing fd for 13:70, still in use
[ 1449.388] (II) UnloadModule: "libinput"
[ 1449.388] (II) systemd-logind: releasing fd for 13:68
[ 1449.437] (II) UnloadModule: "libinput"
[ 1449.437] (II) systemd-logind: releasing fd for 13:79
[ 1449.473] (II) UnloadModule: "libinput"
[ 1449.473] (II) systemd-logind: releasing fd for 13:77
[ 1449.490] (II) UnloadModule: "libinput"
[ 1449.490] (II) systemd-logind: releasing fd for 13:76
[ 1449.507] (II) UnloadModule: "libinput"
[ 1449.507] (II) systemd-logind: releasing fd for 13:74
[ 1449.537] (II) UnloadModule: "libinput"
[ 1449.537] (II) systemd-logind: releasing fd for 13:73
[ 1449.560] (II) UnloadModule: "libinput"
[ 1449.560] (II) systemd-logind: releasing fd for 13:72
[ 1449.584] (II) UnloadModule: "libinput"
[ 1449.584] (II) systemd-logind: releasing fd for 13:71
[ 1449.607] (II) UnloadModule: "libinput"
[ 1449.607] (II) systemd-logind: releasing fd for 13:70
[ 1449.617] (II) UnloadModule: "libinput"
[ 1449.617] (II) systemd-logind: releasing fd for 13:69
[ 1449.640] (II) UnloadModule: "libinput"
[ 1449.640] (II) systemd-logind: releasing fd for 13:66
[ 1449.664] (II) UnloadModule: "libinput"
[ 1449.664] (II) systemd-logind: releasing fd for 13:65
[ 1449.707] (II) UnloadModule: "libinput"
[ 1449.707] (II) systemd-logind: releasing fd for 13:80
[ 1449.773] (II) UnloadModule: "libinput"
[ 1449.773] (II) systemd-logind: releasing fd for 13:75
[ 1449.840] (II) UnloadModule: "libinput"
[ 1449.840] (II) systemd-logind: releasing fd for 13:67
[ 1449.894] (II) Server terminated successfully (0). Closing log file.
--------------------------------------------------------------------------------------------------------------------------

Support different tray icons

I would love to see an option to change the systray icons. I'm using a transparent taskbar with monochromic icons. The 3D-like icons look very nice, but don't fit. (Especially the green nvidia icon).

Maybe you could check another (local) path first and see if there are some icons to use. Or there could be a config option in optimus-manager.conf or whatever.

optimus-manager is the best solution I used so far to get gaming on my linux laptop working, thank you very much! (And believe me, I tried very much...)

[GNOME + GDM] Stopping login services does not stop the desktop environment

To my experience, I always seem to stuck at Warning : Xorg server does not want to stop. when trying to switch. This leads to many issues, including having to manually logging out the DE and restarting the login service when switching to nvidia, and the login service (in this case gdm) crashes when trying to switch back to intel. However, when I first log out of the desktop environment and run the switching script in a virtual terminal, everything works fine and dandy.

Login manager: GDM 3.30.2
Desktop environment: GNOME 3.30.2

Expected fallback mechanism

Expected fallback mechanism
Bug report
When I can't switch to NVIDIA, I can't automatically return to Intel. I don't generate the default xorg.conf in the xorg.conf.d directory.
Expect to increase the fallback mechanism, you can automatically fall back

GDM issue is contiuned!

On gdm its just trying to open new xserver on different tty. And cant login after change grapich card

Does it work with gwe?

There is a nvidia tweaker GUI utility "green with envy", called shortly gwe. I don't plan to mess with my GPU but I was just curious what are the options so I installed it. I was about to start it then I recalled that we shouldn't run nvidia settings program.

So how is with gwe? Is it safe to launch it? Is it safe to use it? Even if not for me, we should have this info in readme, because I have a feeling that gwe will become a standard app installed on many nvidia computers.

Thanks

KDE+ Nvidia + optimus-manager = Tearing =-x

Manjaro 18 KDE Minimal edition!
Nvidia GTX 850m Proprietary driver!

Been using your script flawlessly, today i replaced xfce by kde and when i do install optimus-manager i get instant tearing, according to my experience at this computer with drm mode =1 the tearing goes away, but looks like you black listed it, is there a way to re enable it and avoid tearing? its terrible, specially with firefox...thanks in advance

computer feezes often, when switching to nvidia, when trying to shutdown, quit the i3 session etc

Describe the bug
My computer freezes (I can't do anything, change to a tty, so at that point I just stay pressed on the power button), when I'm trying to switch from intel to nvidia, with the login_manager_control=yes (login_manager_control=no, I don't have that problem), when I try to shutdown (in modes intel and nvidia both I think, but not always, so maybe there's a context in which I can, but I haven't discovered the pattern). When I exit i3 too, which is supposed to get me back to the display manager's greeter. I'm confident these issues appeared when I started using optimus-manager, though they weren't there at first. I did a clean install of my system again, in case it was something that I wouldn't know how to repair, and as I added optimus-manager they came back. The issue maybe lies somewhere else, but optimus-manager seems the be the one triggering the issues.

I tried to follow what was in the README, but I wasn't able to add kernel parameters at boot, I was having errors on that.

I disabled the service, will see if i continue having problems with it disabled, maybe rely on nvidia-xrun for the moment, be confident the issues dissapear, but I'd rather have optimus-manager working the way it should. I was using the package in the extra repositories of manjaro, I switched to the one in the AUR today, which is on version 0.5 instead of 0.4, hoping it would change something.

Something I want to try too, is to run the switch command, with login_manager_control=no, try to restart lightdm, and see if i can use that instead.

System info
Please include :

  • Your distribution: 4.19.6-1-MANJARO
  • Your desktop manager: i3 (manjaro's i3 community edition)
  • You display manager: LightDM
  • Your laptop model: Lenovo Legion Y520

Logs
Please attach the following logs (if you are able to):

Black screen upon login manager restart

I am getting a black screen upon trying to restart in nvidia mode. I've read through the troubleshooting guide and none of the suggestions help.

Here is what I've tried:

  1. Removed all extraneous *.conf files from /etc/modules.d and /etc/X11.
  2. Made sure optimus-manager.service is started.
  3. Made sure bumblebeed.service is disabled.
  4. Made sure bbswitch is not started on startup.
  5. Changed "switching=" option in /usr/share/optimus-manager.conf to be "bbswitch".
  6. Changed "modeset=" option in /usr/share/optimus-manager.conf to be "no".
  7. Reinstalled optimus-manager
  8. Reinstalled nvidia drivers.

Using latest updates to Manajaro on kernel 4.19 on a Dell 9560 laptop with a Nvidia 1050 card.

journalctl -u optimus-manager.service
https://pastebin.com/mPiNDNf9

/var/log/Xorg.0.log
https://pastebin.com/M42ZBJJR

Intel backlight config

Hi, before using optimus-manager, I've had the following in my xorg.conf:

Section "Device"
    Identifier "Card0"
    Driver     "intel"
    Option     "TearFree" "true"
    Option     "Backlight"  "intel_backlight"
EndSection

How can I have the last option with optimus-manager when I'm switched to Intel? Specifically: Option "Backlight" "intel_backlight"

--set-startup won't work

The command sudo optimus-manager --set-startup nvidia does not work for me. Switching manually with optimus-manager --switch nvidia works, though. I am using Arch Linux with kernel 4.19.2-arch1-1, nvidia-410.73-3, lightdm-1:1.28.0-1, xfce4 4.12.1-8 and optimus-manager-0.2-2.

$ cat /etc/X11/xorg.conf.d/10-optimus-manager.conf 
Section "Module"
	Load "modesetting"
EndSection

Section "Device"
	Identifier "nvidia"
	Driver "nvidia"
	BusID "01:00:0"
	Option "AllowEmptyInitialConfiguration"
	Option "Coolbits" "28"
	Option "DRI" "3"
EndSection
$ cat /etc/lightdm/lightdm.conf.d/10-optimus-manager.conf 
[Seat:*]
display-setup-script=/usr/bin/optimus-manager_Xsetup
$ systemctl status optimus-manager.service
● optimus-manager.service - Optimus Manager
   Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2018-11-20 17:35:58 CET; 14min ago
 Main PID: 567 (python)
    Tasks: 1 (limit: 4915)
   Memory: 30.5M
   CGroup: /system.slice/optimus-manager.service
           └─567 /usr/bin/python -u /usr/bin/optimus-manager-daemon --startup

Nov 20 17:35:59 arch python[567]: Error : Cannot find /usr/share/sddm/scripts/Xsetup
Nov 20 17:35:59 arch python[567]: Awaiting commands
Nov 20 17:36:26 arch python[567]: Received command : nvidia
Nov 20 17:36:26 arch python[567]: Stopping login manager
Nov 20 17:36:26 arch python[567]: Switching to Nvidia
Nov 20 17:36:26 arch python[567]: Loading Nvidia modules
Nov 20 17:36:26 arch python[567]: Configuring Xorg...
Nov 20 17:36:26 arch python[567]: Configuring login managers..
Nov 20 17:36:26 arch python[567]:         Configuring LightDM
Nov 20 17:36:26 arch python[567]: Restarting login manager

As you can see, I switched the mode manually which shows up in the systemd status report. I also tried creating the configuration /etc/optimus-manager.conf with this content:

[optimus]
login_manager=lightdm

I thought the script couldn't find out I am using lightdm, but this also didn't work. X11 config's are cleaned up, bumblebeed.service is disabled and the bbswitch module isn't loaded.

.desktop file for the systray is missing

Describe the bug
README:

To make the tray icon automatically launch with your DE, it is usually enough to do:

ln -s /usr/share/applications/optimus-manager-systray.desktop ~/.config/autostart/optimus-manager-systray.desktop

After installing 0.7 version:

$ ls /usr/share/applications/optimus-manager-systray.desktop
ls: cannot access '/usr/share/applications/optimus-manager-systray.desktop': No such file or directory

Manual call of optimus-manager-systray in autostart works fine.

System info
Please include :

  • Manjaro
  • Cinnamon
  • LightDM

what drivers to install and what to block?

Hello,
so far I have been blocking the nouveau / nvidia drivers with modprobe. I suppose these should be unblocked? What about xf86-video-intel, should it be installed?

If you could give a little more information on those prerequisites needed before using the optimus manager, it would be amazing!
Thanks for the great work :)

Optimus Manager doesn't shutdown on intel

Describe the bug
When I try to shut down my system using intel, the system hangs. I need to force it. The startup script is nvida and it boots just fine. Futher if I switch back to nvidia from intel, the system hangs, and on force reboot the display manager fails to start. I then have to chroot into the system, disable the display manager and use plain old startx and it works just fine
When I switch to intel and use nvidia-smi the terminal hangs and doesn't give me an immediate answer unlike my friend's laptop which shows that the driver isn't loaded

System info
Please include :

  • Archlinux
  • i3-gaps
  • Sddm and Lightdm(same issue)

Logs

Unable to reload SDDM

Describe the bug
When I switch video card, SDDM does not start, hangs on "Reaching graphical target". But after rebooting the system, the video card change is applied and works as expected. Is short I need to reboot OS to change card.

System info
Please include :
Operating System: Arch Linux
KDE Plasma Version: 5.15.0
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1
Kernel Version: 4.20.10-arch1-1-ARCH
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 19,5 ГиБ

Logs

dmesg

Xorg

journalctl -u display-manager -b0 --no-pager
-- Logs begin at Mon 2019-02-18 21:06:12 EET, end at Tue 2019-02-19 15:22:37 EET. --
-- No entries --
journalctl -u optimus-manager -b0 --no-pager
-- Logs begin at Mon 2019-02-18 21:06:12 EET, end at Tue 2019-02-19 15:24:24 EET. --
фев 19 15:17:24 AcerAspire5 systemd[1]: Started Optimus Manager Commands Daemon.
фев 19 15:17:24 AcerAspire5 python[532]: Optimus Manager (Daemon) version 0.7.1
фев 19 15:17:24 AcerAspire5 python[532]: Awaiting commands

/etc/X11/ contains nothing related to GPUs except 10-optimus-manager.conf

set-startup has no effect

When I type sudo optimus-manager --set-startup nvidia then restart my laptop, I run on the Intel GPU.

I use SDDM / ArchLinux / KDE.

sudo systemctl status optimus-manager.service          
[sudo] Mot de passe de neros :         
● optimus-manager.service - Optimus Manager
   Loaded: loaded (/etc/systemd/system/optimus-manager.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2018-11-18 02:10:49 CET; 8min ago
 Main PID: 1257 (python)
    Tasks: 1 (limit: 4915)
   Memory: 45.5M
   CGroup: /system.slice/optimus-manager.service
           └─1257 /usr/bin/python -u /usr/bin/optimus-manager-daemon --startup

nov. 18 02:10:49 Neros systemd[1]: Started Optimus Manager.
nov. 18 02:10:50 Neros python[1257]: Optimus Manager (Daemon) version 0.1
nov. 18 02:10:50 Neros python[1257]: Startup mode : nvidia
nov. 18 02:10:50 Neros python[1257]: Switching to Nvidia
nov. 18 02:10:50 Neros python[1257]: Loading Nvidia modules
nov. 18 02:10:51 Neros python[1257]: Configuring Xorg...
nov. 18 02:10:51 Neros python[1257]: Configuring login managers..
nov. 18 02:10:51 Neros python[1257]:         Configuring SDDM
nov. 18 02:10:51 Neros python[1257]:         Configuring LightDM
nov. 18 02:10:51 Neros python[1257]: Awaiting commands
 cat /etc/X11/xorg.conf.d/10-optimus-manager.conf 
Section "Module"
        Load "modesetting"
EndSection

Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
        BusID "02:00:0"
        Option "AllowEmptyInitialConfiguration"
        Option "Coolbits" "28"
        Option "DRI" "3"
EndSection
 cat /etc/sddm.conf.d/10-optimus-manager.conf
[X11]
DisplayCommand=/usr/bin/optimus-manager_Xsetup

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.