pedro00dk / nvidia-exec

GPU switching without login out for Nvidia Optimus laptops under Linux
https://aur.archlinux.org/packages/nvidia-exec
GNU General Public License v3.0
128 stars 9 forks source link

Correct usage? #5

Closed ni-ka closed 2 years ago

ni-ka commented 2 years ago

Hey,

Awesome work! I'm having some error messages when using your script so just wanted to make sure I am using it correctly:

~ >>> sudo nvx start vkcube                                                                                            
/usr/bin/nvx: line 128: /tmp/nvx.lock: Permission denied
flock: 3: Bad file descriptor
/usr/bin/nvx: line 133: /tmp/nvx.lock: Permission denied
# turn on gpu
-- pci rescan
-- pci "PCI bridge - 6th-10th Gen Core Processor PCIe Controller (x16)" -> 0000:00:01.0
   -- pci power control on
   -- device enable "VGA compatible controller - GP107GLM [Quadro P1000 Mobile]" -> 0000:01:00.0
# load modules
   -- module nvidia
   -- module nvidia_uvm
   -- module nvidia_modeset
   -- module nvidia_drm
flock: 3: Bad file descriptor
Selected GPU 0: Quadro P1000, type: 2
/usr/bin/nvx: line 144: /tmp/nvx.lock: Permission denied
flock: 3: Bad file descriptor
/usr/bin/nvx: line 146: /tmp/nvx.lock: Permission denied
# kill processes
-- no processes found
# unload modules
-- module nvidia_drm
-- module nvidia_modeset
-- module nvidia_uvm
-- module nvidia
# turn off
-- pci "PCI bridge - 6th-10th Gen Core Processor PCIe Controller (x16)" -> 0000:00:01.0
   -- device remove "VGA compatible controller - GP107GLM [Quadro P1000 Mobile]" -> 0000:01:00.0
   -- power control auto
flock: 3: Bad file descriptor

Also, I do have the following errors in journal:

~ >>> sudo nvx start vkcube                                                                                            
/usr/bin/nvx: line 128: /tmp/nvx.lock: Permission denied
flock: 3: Bad file descriptor
/usr/bin/nvx: line 133: /tmp/nvx.lock: Permission denied
# turn on gpu
-- pci rescan
-- pci "PCI bridge - 6th-10th Gen Core Processor PCIe Controller (x16)" -> 0000:00:01.0
   -- pci power control on
   -- device enable "VGA compatible controller - GP107GLM [Quadro P1000 Mobile]" -> 0000:01:00.0
# load modules
   -- module nvidia
   -- module nvidia_uvm
   -- module nvidia_modeset
   -- module nvidia_drm
flock: 3: Bad file descriptor
Selected GPU 0: Quadro P1000, type: 2
/usr/bin/nvx: line 144: /tmp/nvx.lock: Permission denied
flock: 3: Bad file descriptor
/usr/bin/nvx: line 146: /tmp/nvx.lock: Permission denied
# kill processes
-- no processes found
# unload modules
-- module nvidia_drm
-- module nvidia_modeset
-- module nvidia_uvm
-- module nvidia
# turn off
-- pci "PCI bridge - 6th-10th Gen Core Processor PCIe Controller (x16)" -> 0000:00:01.0
   -- device remove "VGA compatible controller - GP107GLM [Quadro P1000 Mobile]" -> 0000:01:00.0
   -- power control auto
flock: 3: Bad file descriptor

Not sure it matters but I am using Manjaro.

Also, how do I use that with steam? It doesn't seem to support sudo in command line.

Thanks!

pedro00dk commented 2 years ago

Hey @ni-ka,

Try using nvx without sudo. The command is going to ask for the password when necessary.

$ # no sudo
$ nvx start vkcube

That is going to fix your error, if not, try deleting /tmp/nvx.lock as well. I'm going to check why that is happening when sudo is used.

If your command needs sudo to run, you can try sudoing the internal command:

nvx start sudo [command]

You will probably need to input your password multiple times though.

pedro00dk commented 2 years ago

Forgot to mention, on steam I just run nvx start steam and that works for me. One game, in particular, that I found that for some reason does not use the nvidia card is Tomb Raider (2013). I tried changing its startup command on the game settings to nvx start %command% but that did not work either. You may find other games with this issue, but the ones I tested worked fine.

ni-ka commented 2 years ago

Thanks @pedro00dk - indeed without sudo no more errors in the log.

Regarding steam, did you just change the game command or do you launch the entire steam process with nvx?

I've tried replacing the game command line, but it fails since I cannot enter my sudo password. It brings some errors which might be specific for my system - maybe for you it brings a UI prompt for sudo password? See logs below

Cheers

Feb 27 21:41:47 nk-zbook steam.desktop[37433]: /bin/sh\0-c\0nvx start /home/nils/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=255710 -- '/home/nils/.local/share/Steam/steamapps/common/Cities_Skylines/dowser'\0
Feb 27 21:41:47 nk-zbook steam.desktop[37433]: Game process added : AppID 255710 "nvx start /home/nils/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=255710 -- '/home/nils/.local/share/Steam/steamapps/common/Cities_Skylines/dowser'", ProcID 43051, IP 0.0.0.0:0
Feb 27 21:41:47 nk-zbook steam.desktop[37433]: GameAction [AppID 255710, ActionID 1] : LaunchApp changed task to WaitingGameWindow with ""
Feb 27 21:41:47 nk-zbook steam.desktop[43051]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:41:47 nk-zbook steam.desktop[37433]: GameAction [AppID 255710, ActionID 1] : LaunchApp changed task to Completed with ""
Feb 27 21:41:47 nk-zbook steam.desktop[43051]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:41:47 nk-zbook steam.desktop[43052]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:41:47 nk-zbook steam.desktop[43053]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:41:47 nk-zbook steam.desktop[43054]: pid 43054 != 43051, skipping destruction (fork without exec?)
Feb 27 21:41:47 nk-zbook steam.desktop[43055]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:41:47 nk-zbook steam.desktop[43057]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:41:47 nk-zbook steam.desktop[43058]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:41:47 nk-zbook steam.desktop[43056]: pid 43056 != 43051, skipping destruction (fork without exec?)
Feb 27 21:41:47 nk-zbook steam.desktop[43051]: # turn on gpu
Feb 27 21:41:47 nk-zbook steam.desktop[43051]: -- pci rescan
Feb 27 21:41:47 nk-zbook dbus-daemon[538]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.184' (uid=0 pid=43059 comm="sudo tee /sys/bus/pci/rescan ")
Feb 27 21:41:47 nk-zbook dbus-daemon[538]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:41:47 nk-zbook sudo[43059]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:41:47 nk-zbook steam.desktop[43059]: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
Feb 27 21:41:47 nk-zbook sudo[43059]: pam_unix(sudo:auth): conversation failed
Feb 27 21:41:47 nk-zbook sudo[43059]: pam_unix(sudo:auth): auth could not identify password for [nils]
Feb 27 21:41:48 nk-zbook steam.desktop[37433]: Local Device Found
Feb 27 21:41:48 nk-zbook steam.desktop[37433]:   type: 0000 0000
Feb 27 21:41:48 nk-zbook steam.desktop[37433]:   path: sdl://0
Feb 27 21:41:48 nk-zbook steam.desktop[37433]:   serial_number:  - 0
Feb 27 21:41:48 nk-zbook steam.desktop[37433]:   Manufacturer:
Feb 27 21:41:48 nk-zbook steam.desktop[37433]:   Product:      ST LIS3LV02DL Accelerometer
Feb 27 21:41:48 nk-zbook steam.desktop[37433]:   Release:      0
Feb 27 21:41:48 nk-zbook steam.desktop[37433]:   Interface:    -1
Feb 27 21:41:49 nk-zbook steam.desktop[43059]: sudo: a password is required
Feb 27 21:41:49 nk-zbook steam.desktop[43113]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:41:49 nk-zbook steam.desktop[43111]: pid 43111 != 43051, skipping destruction (fork without exec?)
Feb 27 21:41:49 nk-zbook steam.desktop[43115]: pid 43115 != 43051, skipping destruction (fork without exec?)
Feb 27 21:41:49 nk-zbook steam.desktop[43116]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:41:49 nk-zbook steam.desktop[43114]: pid 43114 != 43051, skipping destruction (fork without exec?)
Feb 27 21:41:49 nk-zbook steam.desktop[43118]: pid 43118 != 43051, skipping destruction (fork without exec?)
Feb 27 21:41:49 nk-zbook steam.desktop[43119]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:41:49 nk-zbook steam.desktop[43117]: pid 43117 != 43051, skipping destruction (fork without exec?)
Feb 27 21:41:49 nk-zbook steam.desktop[43051]: -- pci "PCI bridge - 6th-10th Gen Core Processor PCIe Controller (x16)" -> 0000:00:01.0
Feb 27 21:41:49 nk-zbook steam.desktop[43051]:    -- pci power control on
Feb 27 21:41:49 nk-zbook dbus-daemon[538]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.185' (uid=0 pid=43120 comm="sudo tee /sys/bus/pci/devices/0000:00:01.0/power/c")
Feb 27 21:41:49 nk-zbook dbus-daemon[538]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:41:49 nk-zbook sudo[43120]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:41:49 nk-zbook sudo[43120]: pam_unix(sudo:auth): conversation failed
Feb 27 21:41:49 nk-zbook steam.desktop[43120]: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
Feb 27 21:41:49 nk-zbook sudo[43120]: pam_unix(sudo:auth): auth could not identify password for [nils]
Feb 27 21:41:52 nk-zbook steam.desktop[43120]: sudo: a password is required
Feb 27 21:41:52 nk-zbook steam.desktop[43158]: pid 43158 != 43051, skipping destruction (fork without exec?)
Feb 27 21:41:52 nk-zbook steam.desktop[43159]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:41:52 nk-zbook steam.desktop[43157]: pid 43157 != 43051, skipping destruction (fork without exec?)
Feb 27 21:41:52 nk-zbook steam.desktop[43161]: pid 43161 != 43051, skipping destruction (fork without exec?)
Feb 27 21:41:52 nk-zbook steam.desktop[43162]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:41:52 nk-zbook steam.desktop[43160]: pid 43160 != 43051, skipping destruction (fork without exec?)
Feb 27 21:41:52 nk-zbook steam.desktop[43164]: pid 43164 != 43051, skipping destruction (fork without exec?)
Feb 27 21:41:52 nk-zbook steam.desktop[43165]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:41:52 nk-zbook steam.desktop[43163]: pid 43163 != 43051, skipping destruction (fork without exec?)
Feb 27 21:41:52 nk-zbook steam.desktop[43051]:    -- device enable "VGA compatible controller - GP107GLM [Quadro P1000 Mobile]" -> 0000:01:00.0
Feb 27 21:41:52 nk-zbook dbus-daemon[538]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.186' (uid=0 pid=43166 comm="sudo tee /sys/bus/pci/devices/0000:01:00.0/power/c")
Feb 27 21:41:52 nk-zbook dbus-daemon[538]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:41:52 nk-zbook sudo[43166]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:41:52 nk-zbook sudo[43166]: pam_unix(sudo:auth): conversation failed
Feb 27 21:41:52 nk-zbook steam.desktop[43166]: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
Feb 27 21:41:52 nk-zbook sudo[43166]: pam_unix(sudo:auth): auth could not identify password for [nils]
Feb 27 21:41:52 nk-zbook sudo[43166]: pam_faillock(sudo:auth): Consecutive login failures for user nils account temporarily locked
Feb 27 21:41:54 nk-zbook steam.desktop[43166]: sudo: a password is required
Feb 27 21:41:54 nk-zbook steam.desktop[43051]: # load modules
Feb 27 21:41:54 nk-zbook steam.desktop[43051]:    -- module nvidia
Feb 27 21:41:54 nk-zbook dbus-daemon[538]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.187' (uid=0 pid=43204 comm="sudo modprobe nvidia ")
Feb 27 21:41:54 nk-zbook dbus-daemon[538]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:41:54 nk-zbook sudo[43204]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:41:54 nk-zbook steam.desktop[43204]: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
Feb 27 21:41:54 nk-zbook sudo[43204]: pam_unix(sudo:auth): conversation failed
Feb 27 21:41:54 nk-zbook sudo[43204]: pam_unix(sudo:auth): auth could not identify password for [nils]
Feb 27 21:41:56 nk-zbook steam.desktop[43204]: sudo: a password is required
Feb 27 21:41:56 nk-zbook steam.desktop[43051]:    -- module nvidia_uvm
Feb 27 21:41:56 nk-zbook dbus-daemon[538]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.188' (uid=0 pid=43262 comm="sudo modprobe nvidia_uvm ")
Feb 27 21:41:56 nk-zbook dbus-daemon[538]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:41:56 nk-zbook sudo[43262]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:41:56 nk-zbook sudo[43262]: pam_unix(sudo:auth): conversation failed
Feb 27 21:41:56 nk-zbook steam.desktop[43262]: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
Feb 27 21:41:56 nk-zbook sudo[43262]: pam_unix(sudo:auth): auth could not identify password for [nils]
Feb 27 21:41:58 nk-zbook steam.desktop[43262]: sudo: a password is required
Feb 27 21:41:58 nk-zbook steam.desktop[43051]:    -- module nvidia_modeset
Feb 27 21:41:58 nk-zbook dbus-daemon[538]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.189' (uid=0 pid=43299 comm="sudo modprobe nvidia_modeset ")
Feb 27 21:41:58 nk-zbook dbus-daemon[538]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:41:58 nk-zbook sudo[43299]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:41:58 nk-zbook steam.desktop[43299]: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
Feb 27 21:41:58 nk-zbook sudo[43299]: pam_unix(sudo:auth): conversation failed
Feb 27 21:41:58 nk-zbook sudo[43299]: pam_unix(sudo:auth): auth could not identify password for [nils]
Feb 27 21:42:00 nk-zbook steam.desktop[43299]: sudo: a password is required
Feb 27 21:42:00 nk-zbook steam.desktop[43051]:    -- module nvidia_drm
Feb 27 21:42:00 nk-zbook dbus-daemon[538]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.190' (uid=0 pid=43319 comm="sudo modprobe nvidia_drm ")
Feb 27 21:42:00 nk-zbook dbus-daemon[538]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:42:00 nk-zbook sudo[43319]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:42:00 nk-zbook steam.desktop[43319]: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
Feb 27 21:42:00 nk-zbook sudo[43319]: pam_unix(sudo:auth): conversation failed
Feb 27 21:42:00 nk-zbook sudo[43319]: pam_unix(sudo:auth): auth could not identify password for [nils]
Feb 27 21:42:02 nk-zbook steam.desktop[43319]: sudo: a password is required
Feb 27 21:42:02 nk-zbook steam.desktop[43375]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:42:02 nk-zbook steam.desktop[43377]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Feb 27 21:42:02 nk-zbook steam.desktop[43378]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:42:04 nk-zbook steam.desktop[37433]: Game process updated : AppID 255710 "nvx start /home/nils/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=255710 -- '/home/nils/.local/share/Steam/steamapps/common/Cities_Skylines/dowser'", ProcID 43390, IP 0.0.0.0:0
Feb 27 21:42:05 nk-zbook steam.desktop[37433]: Local Device Found
Feb 27 21:42:05 nk-zbook steam.desktop[37433]:   type: 0000 0000
Feb 27 21:42:05 nk-zbook steam.desktop[37433]:   path: sdl://0
Feb 27 21:42:05 nk-zbook steam.desktop[37433]:   serial_number:  - 0
Feb 27 21:42:05 nk-zbook steam.desktop[37433]:   Manufacturer:
Feb 27 21:42:05 nk-zbook steam.desktop[37433]:   Product:      ST LIS3LV02DL Accelerometer
Feb 27 21:42:05 nk-zbook steam.desktop[37433]:   Release:      0
Feb 27 21:42:05 nk-zbook steam.desktop[37433]:   Interface:    -1
Feb 27 21:42:09 nk-zbook steam.desktop[37433]: Local Device Found
Feb 27 21:42:09 nk-zbook steam.desktop[37433]:   type: 0000 0000
Feb 27 21:42:09 nk-zbook steam.desktop[37433]:   path: sdl://0
Feb 27 21:42:09 nk-zbook steam.desktop[37433]:   serial_number:  - 0
Feb 27 21:42:09 nk-zbook steam.desktop[37433]:   Manufacturer:
Feb 27 21:42:09 nk-zbook steam.desktop[37433]:   Product:      ST LIS3LV02DL Accelerometer
Feb 27 21:42:09 nk-zbook steam.desktop[37433]:   Release:      0
Feb 27 21:42:09 nk-zbook steam.desktop[37433]:   Interface:    -1
Feb 27 21:42:09 nk-zbook steam.desktop[43612]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:42:09 nk-zbook steam.desktop[43613]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:42:09 nk-zbook steam.desktop[43615]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:42:09 nk-zbook steam.desktop[43614]: pid 43614 != 43051, skipping destruction (fork without exec?)
Feb 27 21:42:09 nk-zbook steam.desktop[43617]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:42:09 nk-zbook steam.desktop[43618]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:42:09 nk-zbook steam.desktop[43616]: pid 43616 != 43051, skipping destruction (fork without exec?)
Feb 27 21:42:09 nk-zbook steam.desktop[43051]: # kill processes
Feb 27 21:42:09 nk-zbook steam.desktop[43621]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:42:10 nk-zbook steam.desktop[43619]: pid 43619 != 43051, skipping destruction (fork without exec?)
Feb 27 21:42:10 nk-zbook steam.desktop[43051]: -- no processes found
Feb 27 21:42:10 nk-zbook steam.desktop[43051]: # unload modules
Feb 27 21:42:10 nk-zbook steam.desktop[43051]: -- module nvidia_drm
Feb 27 21:42:10 nk-zbook dbus-daemon[538]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.193' (uid=0 pid=43623 comm="sudo modprobe --remove nvidia_drm ")
Feb 27 21:42:10 nk-zbook dbus-daemon[538]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:42:10 nk-zbook sudo[43623]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:42:10 nk-zbook sudo[43623]: pam_unix(sudo:auth): conversation failed
Feb 27 21:42:10 nk-zbook sudo[43623]: pam_unix(sudo:auth): auth could not identify password for [nils]
Feb 27 21:42:11 nk-zbook steam.desktop[43051]: -- module nvidia_modeset
Feb 27 21:42:11 nk-zbook dbus-daemon[538]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.194' (uid=0 pid=43661 comm="sudo modprobe --remove nvidia_modeset ")
Feb 27 21:42:11 nk-zbook dbus-daemon[538]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:42:11 nk-zbook sudo[43661]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:42:11 nk-zbook sudo[43661]: pam_unix(sudo:auth): conversation failed
Feb 27 21:42:11 nk-zbook sudo[43661]: pam_unix(sudo:auth): auth could not identify password for [nils]
Feb 27 21:42:14 nk-zbook steam.desktop[43051]: -- module nvidia_uvm
Feb 27 21:42:14 nk-zbook dbus-daemon[538]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.195' (uid=0 pid=43699 comm="sudo modprobe --remove nvidia_uvm ")
Feb 27 21:42:14 nk-zbook dbus-daemon[538]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:42:14 nk-zbook sudo[43699]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:42:14 nk-zbook sudo[43699]: pam_unix(sudo:auth): conversation failed
Feb 27 21:42:14 nk-zbook sudo[43699]: pam_unix(sudo:auth): auth could not identify password for [nils]
Feb 27 21:42:14 nk-zbook steam.desktop[37433]: Local Device Found
Feb 27 21:42:14 nk-zbook steam.desktop[37433]:   type: 0000 0000
Feb 27 21:42:14 nk-zbook steam.desktop[37433]:   path: sdl://0
Feb 27 21:42:14 nk-zbook steam.desktop[37433]:   serial_number:  - 0
Feb 27 21:42:14 nk-zbook steam.desktop[37433]:   Manufacturer:
Feb 27 21:42:14 nk-zbook steam.desktop[37433]:   Product:      ST LIS3LV02DL Accelerometer
Feb 27 21:42:14 nk-zbook steam.desktop[37433]:   Release:      0
Feb 27 21:42:14 nk-zbook steam.desktop[37433]:   Interface:    -1
Feb 27 21:42:16 nk-zbook steam.desktop[43051]: -- module nvidia
Feb 27 21:42:16 nk-zbook dbus-daemon[538]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.196' (uid=0 pid=43737 comm="sudo modprobe --remove nvidia ")
Feb 27 21:42:16 nk-zbook dbus-daemon[538]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:42:16 nk-zbook sudo[43737]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:42:16 nk-zbook sudo[43737]: pam_unix(sudo:auth): conversation failed
Feb 27 21:42:16 nk-zbook sudo[43737]: pam_unix(sudo:auth): auth could not identify password for [nils]
Feb 27 21:42:18 nk-zbook steam.desktop[43051]: # turn off
Feb 27 21:42:18 nk-zbook steam.desktop[43776]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:42:18 nk-zbook steam.desktop[43774]: pid 43774 != 43051, skipping destruction (fork without exec?)
Feb 27 21:42:18 nk-zbook steam.desktop[43778]: pid 43778 != 43051, skipping destruction (fork without exec?)
Feb 27 21:42:18 nk-zbook steam.desktop[43779]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:42:18 nk-zbook steam.desktop[43777]: pid 43777 != 43051, skipping destruction (fork without exec?)
Feb 27 21:42:18 nk-zbook steam.desktop[43781]: pid 43781 != 43051, skipping destruction (fork without exec?)
Feb 27 21:42:18 nk-zbook steam.desktop[43782]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:42:18 nk-zbook steam.desktop[43780]: pid 43780 != 43051, skipping destruction (fork without exec?)
Feb 27 21:42:18 nk-zbook steam.desktop[43051]: -- pci "PCI bridge - 6th-10th Gen Core Processor PCIe Controller (x16)" -> 0000:00:01.0
Feb 27 21:42:18 nk-zbook steam.desktop[43784]: pid 43784 != 43051, skipping destruction (fork without exec?)
Feb 27 21:42:18 nk-zbook steam.desktop[43785]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:42:18 nk-zbook steam.desktop[43783]: pid 43783 != 43051, skipping destruction (fork without exec?)
Feb 27 21:42:18 nk-zbook steam.desktop[43787]: pid 43787 != 43051, skipping destruction (fork without exec?)
Feb 27 21:42:18 nk-zbook steam.desktop[43788]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:42:18 nk-zbook steam.desktop[43786]: pid 43786 != 43051, skipping destruction (fork without exec?)
Feb 27 21:42:18 nk-zbook steam.desktop[43791]: pid 43791 != 43051, skipping destruction (fork without exec?)
Feb 27 21:42:18 nk-zbook steam.desktop[43792]: ERROR: ld.so: object '/home/nils/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Feb 27 21:42:18 nk-zbook steam.desktop[43790]: pid 43790 != 43051, skipping destruction (fork without exec?)
Feb 27 21:42:18 nk-zbook steam.desktop[43051]:    -- device remove "VGA compatible controller - GP107GLM [Quadro P1000 Mobile]" -> 0000:01:00.0
Feb 27 21:42:18 nk-zbook dbus-daemon[538]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.197' (uid=0 pid=43809 comm="sudo tee /sys/bus/pci/devices/0000:01:00.0/remove ")
Feb 27 21:42:18 nk-zbook dbus-daemon[538]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:42:18 nk-zbook sudo[43809]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:42:18 nk-zbook sudo[43809]: pam_unix(sudo:auth): conversation failed
Feb 27 21:42:18 nk-zbook steam.desktop[43809]: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
Feb 27 21:42:18 nk-zbook sudo[43809]: pam_unix(sudo:auth): auth could not identify password for [nils]
Feb 27 21:42:20 nk-zbook steam.desktop[43809]: sudo: a password is required
Feb 27 21:42:20 nk-zbook steam.desktop[43051]:    -- power control auto
Feb 27 21:42:20 nk-zbook dbus-daemon[538]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.198' (uid=0 pid=43846 comm="sudo tee /sys/bus/pci/devices/0000:00:01.0/power/c")
Feb 27 21:42:20 nk-zbook dbus-daemon[538]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:42:20 nk-zbook sudo[43846]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Feb 27 21:42:20 nk-zbook steam.desktop[43846]: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
Feb 27 21:42:20 nk-zbook sudo[43846]: pam_unix(sudo:auth): conversation failed
Feb 27 21:42:20 nk-zbook sudo[43846]: pam_unix(sudo:auth): auth could not identify password for [nils]
Feb 27 21:42:21 nk-zbook steam.desktop[43846]: sudo: a password is required
pedro00dk commented 2 years ago

@ni-ka

I just start steam using nvx: nvx start steam.

Currently, I'm working on a new version of nvx that is going to rely on a daemon with root access. Hence, the user will be asked for credentials only if [command] requires it of course, and sudoing the entire command will probably work as well.

ni-ka commented 2 years ago

Thanks @pedro00dk ! Works well this way. The daemon idea sounds like a good improvement. Thanks for the help!