/srv/irclogs.ubuntu.com/2023/04/30/#xubuntu.txt

dgallayc'est qoi ça mdr17:45
xu-help58wHello?20:09
xu-irc12wHello? I'm new to Linux and Xubuntu, and was hoping I could get some help.23:14
gnrpxu-irc12w: hi23:15
gnrp!ask23:15
ubottuPlease don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-) See also !patience23:15
gnrpxu-irc12w: What problems are you facing?23:15
xu-irc12wI'm trying to run some games on Steam, but some games run fine while others don't run at all (the steam program greys out the play button, like the game is running, but no window appears, and after a few seconds the launch button shows up green again).23:16
gnrpuh-oh23:16
gnrpthis channel here is for xubuntu. While there might be people who can help you, I think it makes more sense when you look for more specific help23:17
gnrpfor gaming on linux, there are dedicated channels (although I wouldn't know any right now)23:17
xu-irc12wI'd also ask for help with getting Nvidia graphics card drivers but at this stage, I think I might be better off with the open-source drivers. I've had to reinstall Xubuntu at least three or four times because I make a mistake, the graphics card throws an error, and the DTE doesn't show up.23:17
xu-irc12wAh. Well, I'll hang around here in case there is someone who might be able to help me.23:18
gnrpalthough things might also be related to the driver, of course23:19
gnrpwhat was the issue when you used the proprietary nvidia driver?23:19
gnrpit's quite some time ago that I dealt with that, but maybe I can help23:19
xu-irc12wI'm... not even entirely sure exactly. All I know is that sometimes when rebooting, the reboot wouldn't happen properly.23:20
xu-irc12wI'd get errors related to nvidia_drm23:20
xu-irc12wOr there'd be an i2c timeout error23:20
xu-irc12wAnd then I wouldn't be able to reboot. The computer would just get stuck23:21
xu-irc12wEither that, or it would bring me to a terminal and not a desktop environment23:21
xu-irc12wAnd I wouldn't know what to do next23:21
xu-irc12wSo I just reinstalled.23:21
xu-irc12wAnd this happened when I chose a nvidia proprietary driver from the list in "additional drivers".23:21
tomreynxu-irc12w: which nvidia graphics card / chipset do you have there?23:23
tomreynlspci -knnd ::0300 | nc termbin.com 9999 23:23
xu-irc12wHello? Sorry, I had to dip out for a sec. Someone was asking what graphics card I have?23:26
xu-irc12wMy graphics card is a GeForce GTX 1660 Ti Mobile. There's also an integrated graphics card, though I don't know what model that is.23:27
xu-irc12wCurrently I've got the X.org open-source driver.23:27
tomreynxu-irc12w: yes, i was asking. and your xubuntu version is?   lsb_release -ds23:29
xu-irc12w22.04, Jammy Jellyfish23:29
tomreynok, here are some generic notes on nvidia drivers:23:31
tomreyn!nvidia23:31
ubottuDrivers for Nvidia graphics cards: (A) No gaming/CAD/CUDA needed or legacy hardware? Use "nouveau" (open source, lacks many features). (B) Otherwise, "nvidia" (proprietary driver, fully featured). Install using "ubuntu-drivers" CLI or apt - not from nvidia.com. Driver series, hardware support (release notes): https://www.nvidia.com/en-us/drivers/unix/ - Latest drivers !PPA: https://pad.lv/ppa/graphics-drivers23:31
xu-irc12wOh, on a related note - how do I kill a process that I can't normally close? I was trying stuff out and one game's menu wouldn't show up properly, but it also captured the mouse so I couldn't click on anything outside the game itself, so I had to relog just to get back in.23:31
tomreynyou can switch to a tty and login there and then run    pidof COMMAND    where "COMMAND" would be the command that created the window. this should return one (or more) process IDs. if you want to kill all those processes, you can   (sudo) killall COMMAND. if some are still running then, add -9 and run again23:34
xu-irc12wSo just to make sure I understand: I should install the driver (in this case, ubuntu-drivers seems to be recommending "nvidia-driver-530-open") I should type23:35
xu-irc12wubuntu-driver install nvidia-driver-530-open23:35
xu-irc12winto the terminal?23:35
tomreynyou can also use   psauxw | grep -i COMMAND    to look for running commands, this may be less destructive23:35
tomreynxu-irc12w: yes, you can type    ubuntu-drivers install nvidia-driver-530-open    into the terminal. i don'T know which quality the open driver is by now, but you can try.23:36
tomreynthe 515 series open driver did seem to have multiple issues still23:36
xu-irc12wAnd then I just... select it from the "software and updates" window and restart my computer?23:37
tomreyndo it on the GUI or on the CLI, not both23:39
xu-irc12wAlright. I'm gonna switch to the 530 open kernel using the GUI.23:41
tomreynif this driver causes problems with booting, then boot to grub (press escape during early boot), and select the 'recovery' kernel from the 'Advanced' menu, then, on the menu which displays, enable networking (which will also mount file systems) and start a root shell. then run  apt update; apt purge *nvidia*    and confirm and reboot23:43
xu-irc12wI'll... try to keep that in mind. Thanks.23:43
tomreynalternatively, easier:23:44
tomreynif this driver causes problems with booting, then boot to grub (press escape during early boot), and select the 'recovery' kernel from the 'Advanced' menu, then, on the menu which displays, select to continue booting. you'll boot into failsafe graphics, and should be able to come here again for further suggestions.23:44
tomreyn<tomreyn> alternatively, easier:23:45
tomreyn<tomreyn> if this driver causes problems with booting, then boot to grub (press escape during early boot), and select the 'recovery' kernel from the 'Advanced' menu, then, on the menu which displays, select to continue booting. you'll boot into failsafe graphics, and should be able to come here again for further suggestions.23:45
xu-irc12wBack from restarting to finalize the Nvidia driver update. And restarting just reminded me: How do I get a drive to automount on bootup/login?23:46
tomreynyou can probably do that in xfce somehow, but i'm afraid i don't remember how you'd best do so. or you could put it into /etc/fstab, or you could write a systemd unit file for it.23:47
tomreyni'd start investigating using thunar, and a web search for "xubuntu" OR "xfce" "auto" OR "automatic" "user mount"23:48
tomreyn(and look for the more current articles describing it)23:48
xu-irc12wAlright. Now: How do I get my computer to actually use the correct graphics card for games? Like I said earlier, I've got an integrated graphics card, and a more powerful Nvidia one.23:51
tomreynxrandr --listproviders | nc termbin.com 999923:52
xu-irc12wTyped in 'xrander --listproviders' in the terminal. Got this:23:55
xu-irc12wProviders: number : 123:55
xu-irc12wProvider 0: id: 0x42 cap: 0x9, Source Output, Sink Offload crtcs: 3 outputs: 1 associated providers: 0 name:modesetting23:55
tomreynhmm, i guess this means only the integrated graphics driver is loaded, or i'm misinterpreting it due to the open nvidia driver23:57
xu-irc12wAlso, while trying to edit fstab to automount a drive, I tested it before booting according to these instructions here (https://developerinsider.co/auto-mount-drive-in-ubuntu-server-22-04-at-startup/) and got this result:23:57
xu-irc12w   [W] non-bind mount source /swapfile is a directory or regular file23:57
xu-irc12w0 parse errors, 0 errors, 1 warning23:57
xu-irc12wI gotta go, be back in a bit23:57

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!