/srv/irclogs.ubuntu.com/2023/07/21/#xubuntu.txt

xu-help73whello there is there any one that can help me with a very very slow playback, in which Xubuntu is installed on a Vertual Machine with 4GB of RAM allocated to it and 128 Mb of video memory.07:26
xu-help11wi have tp link t2u nano wifi+bluetooth. When i plug in bluetooth works but wifi doesnt10:01
tomreynxu-help11w: what does   sudo lspci -knnv | nc termbin.com 9999    print?10:54
tomreynalso, what's your xubuntu version?   lsb_release -ds10:56
tomreynxu-help11w: this might help https://gist.github.com/julianlam/0ce7692ca10fb91970b6693bc02587ce11:20
xu-help31wHello. I've been having trouble with my graphics card since yesterday. I've got a Nvidia GTX 1660 Ti Mobile, and I was using the 530 driver. It worked fine until I tried to update it. The version changed to 535 and then it stopped working - I wound up booting to the console.16:00
xu-help31wI had to remove the 535 driver, and now I'm on nouveau's driver and don't know which driver I can install that will actually work.16:00
xu-help31wThe drivers being listed in the Software and Updates applet are:16:03
xu-help31w535-server-open16:03
xu-help31w450-server16:03
xu-help31w535-server16:03
xu-help31w53516:03
xu-help31w525-server16:03
tomreynxu-help31w: https://www.nvidia.com/download/index.aspx recommends series 535 for "production"18:03
tomreyn(and i'm *not* suggesting to download it off nvidia.com)18:04
xu-help31wI tried installing 535 but it didn't work for me. I got this error. I'll paste it here in a sec.18:06
xu-help31whttps://dpaste.com/7WS9BXPZT18:06
xu-help31wThis happened when I tried to use the Software and Updates applet to install the driver and rebooted. I had to Control-Alt-F3 into the shell and remove the driver to get the desktop back.18:07
xu-help31wI haven't tried installing the Open Kernel version, though. Should I do that instead?18:11
joeldspyhello everyone18:25
xu-help31wHi. I've been having trouble trying to install nvidia drivers for my graphics card - it's a Nvidia GTX 1660 Ti Mobile. I've been trying to install the 535 driver but something keeps going wrong. Whenever I reboot I keep getting brought to a black screen with a cursor instead of the desktop. And then I have to remove the graphics drivers each time20:52
xu-help31wjust so I can return to nouveau and get the desktop. Can anyone help me?20:52
diogenes_Vx15xu-help31w, how you install the driver?21:12
xu-help31wI first tried to use the Software and Updates applet I have to install the Nvidia 535 driver. That didn't work - when I restarted, I got a black screen with a blinking cursor.21:13
xu-help31wNext, I tried to use the command line to install the PPA GPU Repository and tried to use that to install 535. That didn't work either.21:14
xu-help31wI've also tried to install 525 through the Software and Updates applet. That also didn't work.21:14
diogenes_Vx15xu-help31w, run: inxi -Gxxc0 | nc termbin.com 999921:15
diogenes_Vx15share the url21:15
xu-help31whttps://termbin.com/k7jy621:16
xu-help31whttps://termbin.com/k7jy21:16
xu-help31wThe second link is the correct one.21:17
diogenes_Vx15xu-help31w, something is completely messed up in your system, first of all whatever weird thing happened to your intel GPU driver: N/A21:19
xu-help31wUh oh. So what should I do?21:19
diogenes_Vx15xu-help31w, i'd start with going to BIOS and look for a GPU related setting, something like: select the default GPU, onboard/discrete/both21:20
diogenes_Vx15check and see if onboard is not disabled.21:21
xu-help31wAlright, I'll try to look. How do I go to BIOS? And how do I do that without getting kicked out of here? I'm typing this on the same computer that's having the problem.21:22
diogenes_Vx15well you will get disconnected because in order to get to BIOS menu, you need to reboot and while booting to keep pressing either F9/10/ESC or whatever key is the BIOS key on your machine.21:23
diogenes_Vx15it differs from brand to brand, for HP it's F921:24
xu-help31wI'm on an MSI.21:24
xu-help31wSo I should start by enabling onboard default GPU or something?21:25
diogenes_Vx15so it's the DELETE key21:25
xu-help31wOr do you just want me to check what it's set to and then tell you what it is?21:25
diogenes_Vx15it's either DEL or F2 for MSI and yes, enalbe onboard GPU if there is such a setting and better take some pics,21:26
xu-help31wI'm back from bringing up the BIOS and taking photos of everything. The bad news is that I couldn't find any graphics options anywhere. No setting to determine onboard/discrete/both or anything like that.21:33
diogenes_Vx15xu-help31w, ok run: ls /etc/X11/ | nc termbin.com 999921:35
diogenes_Vx15share url21:35
=== TheMaster is now known as Unit193
xu-help31whttps://termbin.com/yt4121:37
diogenes_Vx15and: ls /etc/X11/xorg.conf.d | nc termbin.com 999921:38
xu-help31wI didn't get any link for entering that command.21:39
diogenes_Vx15if you simply run: ls /etc/X11/xorg.conf.d21:40
diogenes_Vx15does it show anything?21:41
xu-help31wIt doesn't seem to do anything.21:41
diogenes_Vx15ok now: dpkg -l | grep -i nv | nc termbin.com 999921:41
xu-help31whttps://termbin.com/boad21:42
diogenes_Vx15xu-help31w, ok there is a lot of nvidia stukk that needs to be cleaned up and in some scenario it might end up in a broken X so you won't be albe to get into the desktop, probably even reinstalling the system, are you sure you want to go for this? Do you have any data back up? Any installation media for an eventul reinstall?21:46
xu-help31wI've got my flash drive that I used to install Xubuntu on.21:47
diogenes_Vx15ok then we can try if you want.21:48
xu-help31wAlright. What do I need to do?21:49
diogenes_Vx15sudo apt-get remove --purge '^nvidia-.*'21:51
diogenes_Vx15and notice if it drags down the xubuntu-desktop package, if it marks to remove this package then we will need to reinstall it afretwareds.21:52
diogenes_Vx15d21:52
xu-help31wDone. It looks like nothing nvidia-related was included, so it didn't remove anything.21:52
diogenes_Vx15ok let's check: dpkg -l | grep -i nv | nc termbin.com 999921:53
xu-help31whttp://termbin.com/elnw21:55
diogenes_Vx15sudo apt purge libnvidia*21:56
xu-help31wDone.21:56
diogenes_Vx15dpkg -l | grep -i nv | nc termbin.com 999921:57
xu-help31whttp://termbin.com/ywuz21:58
diogenes_Vx15sudo apt purge libnvidia-*21:59
xu-help31wDidn't remove anything. Noticed the messages which said "Package 'libnvidia-encode-535' is not installed, so not removed. Did you mean 'libnvidia-encode-535:i386'?"22:00
diogenes_Vx15sudo apt purge libnvidia-encode-535:i38622:01
xu-help31whttps://termbin.com/gid222:04
xu-help31wremoved the encode and compute. Dunno what happened to the fbcl thing.22:05
xu-help31wBut when I tried to specifically purge its i386 library, I got the message that it wasn't installed, so it wasn't removed.22:05
diogenes_Vx15sudo apt remove libnvidia-fbc1-535:i386 linux-modules-nvidia-525-5.19.0-46-generic linux-modules-nvidia-530-open-5.19.0-41-generic linux-objects-nvidia-525-5.19.0-46-generic linux-objects-nvidia-535-5.19.0-46-generic linux-signatures-nvidia-5.19.0-46-generic22:06
xu-help31whttps://termbin.com/3uol22:08
diogenes_Vx15sudo apt purge linux-modules-nvidia-525-5.19.0-46-generic linux-modules-nvidia-530-open-5.19.0-41-generic22:09
xu-help31wPurged the last nvidia-objects thing as well. I think all that's left is to remove screen-resolution-extra. https://termbin.com/769322:13
diogenes_Vx15sudo apt autoremove22:14
xu-help31wThat removed screen-resolution-extra, dkms, and dctrl-tools.22:15
diogenes_Vx15sudo apt autoclean22:15
xu-help31whttps://termbin.com/y8a622:15
xu-help31wAnd I've just done sudo apt autoclean.22:15
diogenes_Vx15sudo apt purge linux-objects-nvidia-535-5.19.0-46-generic22:16
xu-help31wDone.22:16
diogenes_Vx15ls -a ~/ | nc termbin.com 999922:17
xu-help31whttps://termbin.com/bu8622:18
diogenes_Vx15dpkg -l | grep -i xubuntu22:21
diogenes_Vx15does it show xubuntu-desktop?22:21
xu-help31wYes.22:21
diogenes_Vx15mv ~/.nv ~/Downloads22:22
xu-help31wDone22:23
diogenes_Vx15mv ~/.nvidia-settings-rc ~/Downloads22:23
xu-help31wDone.22:24
diogenes_Vx15cat ~/.Xdefaults | nc termbin.com 999922:24
xu-help31whttps://termbin.com/nreb22:25
diogenes_Vx15ok reboot now and let's see what happens22:26
xu-help31wWill do. See you on the other side22:26
xu-help31wI'm back. But I don't seem to have any audio going.22:29
xu-help31wWait, false alarum22:29
diogenes_Vx15inxi -Gxxc0 | nc termbin.com 999922:29
xu-help31wI can hear things that my computer's playing.22:29
xu-help31whttp://termbin.com/7f6722:29
diogenes_Vx15dmesg | grep drm | nc termbin.com 999922:30
xu-help31wdmesg: read kernel buffer failed: Operation not permitted22:32
diogenes_Vx15sudo dmesg | grep drm | nc termbin.com 999922:32
xu-help31whttp://termbin.com/uhms22:32
diogenes_Vx15cat /var/log/Xorg.0.log | nc termbin.com 999922:33
xu-help31whttp://termbin.com/5p2122:34
diogenes_Vx15dammit22:35
xu-help31wNow what?22:35
diogenes_Vx15i think i found it22:36
diogenes_Vx15you followed some random advice and added nomodeset to your boot kernel parameters.22:36
diogenes_Vx15run: pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY mousepad /etc/default/grub22:37
xu-help31wAlright.22:37
diogenes_Vx15tell me when it opens up a file to edit22:37
xu-help31wAnd I know it doesn't fix anything, but, I'm sorry for following that random piece of advice. I'm still very, very new to using Linux22:37
xu-help31wI've got the file open.22:37
xu-help31wDo I just remove "nomodeset" from the file?22:38
diogenes_Vx15that's no problem. that's how we all learnet, through many many flames :)22:38
xu-help31wI've found it on this line here: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"22:38
diogenes_Vx15remove nomodeset, save, close and run: sudo update-grub22:39
xu-help31wDone.22:40
diogenes_Vx15cat /etc/default/grub | nc termbin.com 999922:40
xu-help31wI got a warning saying Warning: os-prober will not be executed to detect other bootable partitions.22:41
xu-help31wSystems on them will not be added to the GRUB boot configuration.22:41
xu-help31wCheck GRUB_DISABLE_OS_PROBER documentation entry.22:41
diogenes_Vx15as long as Xubuntu is the only system running, don't worry about that message.22:41
xu-help31wCool.22:42
diogenes_Vx15did you run: cat /etc/default/grub | nc termbin.com 999922:43
xu-help31whttp://termbin.com/j7co22:44
diogenes_Vx15looks good, reboot.22:45
xu-help31wWill do.22:45
xu-help31wI have returned.22:46
diogenes_Vx15inxi -Fxxc0 | nc termbin.com 999922:47
xu-help31whttp://termbin.com/3wck22:47
diogenes_Vx15sudo apt install nvidia-detect22:49
xu-help31w Unable to locate package nvidia-detect22:50
diogenes_Vx15sudo ubuntu-drivers list | nc termbin.com 999922:51
xu-help31whttp://termbin.com/c6cl522:52
diogenes_Vx15sudo apt install nvidia-driver-53522:54
diogenes_Vx15notice if it goes smoothly without any warnings or errors.22:56
xu-help31wI didn't see any errors. I just got the prompt to install it, said "y", and then it finished installing. Should I reboot and hope it works out, or...?22:56
diogenes_Vx15yes reboot22:57
xu-help31wHope this works.22:57
xu-help31wI'm back.22:58
xu-help31wAnd I can actually open up Steam now22:59
xu-help31wLooks like following your advice has resolved my problem.22:59
diogenes_Vx15ok that's good but first let's check if it actually works.22:59
diogenes_Vx15open nvidia settings from the menu.22:59
xu-help31wI've opened up the settings.23:00
diogenes_Vx15now go to your GPU name tab23:01
diogenes_Vx15open some game and see if the card actualy works, is loaded.23:01
xu-help31wWill do.23:01
xu-help31wYou sure there isn't some benchmark program I can run to check instead?23:02
diogenes_Vx15open terminal and run: glxgears23:02
xu-help31wGears show up, and they look to be running pretty smoothly.23:03
diogenes_Vx15how many FPS?23:03
xu-help31w143-144 FPS. My monitor's got a 144 refresh rate.23:03
diogenes_Vx15i'd like to see a screenshot of your nvidia-settings dialog.23:04
xu-help31wDialog?23:05
xu-help31wI can post screenshots of my graphics card info and so forth23:05
diogenes_Vx15the nvidia-settings window23:05
xu-help31whttps://imgur.com/e2qoL8i23:07
diogenes_Vx15ok notice GPU utiliation 0%23:08
xu-help31wAh.23:08
diogenes_Vx15now in terminal run: glxgears23:08
diogenes_Vx15notice if 0% changes23:08
xu-help31wIt does not.23:08
diogenes_Vx15ok close glxgears23:09
diogenes_Vx15and run it once again but this time like this: __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears23:09
xu-help31w21% utilization23:10
diogenes_Vx15ok so it works, now you've got a few options of how you can run your apps with nvidia23:10
xu-help31wWhat options do I have?23:11
diogenes_Vx151) whenever you want to run your entire session with nvidia card (pros: performance, cons: power usage, heat, fans) then in nvidia-settings you go to PRIME Profiles, choose nvidia and reboot.23:12
diogenes_Vx152) is my favorite23:12
xu-help31wWhat's your favorite?23:13
diogenes_Vx15you just tweak the shortcut of your app/game that you want to specifically run with nvidia card and the rest of the system runs with intel GPU (pros: low temp, power saving, cons: less performance)23:13
diogenes_Vx15and no reboot needed.23:13
xu-help31wI see. How do I do that?23:14
diogenes_Vx15let's tryit with your steam launcher.23:15
xu-help31wAlright. I've got Steam open right now.23:15
diogenes_Vx15ls /usr/share/applications | nc termbin.com 999923:16
diogenes_Vx15share url23:16
xu-help31whttps://termbin.com/zphq123:16
diogenes_Vx15cp /usr/share/applications/steam.desktop ~/.local/share/applications23:17
xu-help31wI did it. But nothing seems to have happened?23:19
diogenes_Vx15xu-help31w, remember, whenever you run a command and it gives no output, it means the command completed successfully, in this case just say "done".23:19
xu-help31wUnderstood.23:20
diogenes_Vx15now run: cat ~/.local/share/applications | nc termbin.com 999923:20
diogenes_Vx15wait23:20
diogenes_Vx15wrong command23:20
diogenes_Vx15this one: cat ~/.local/share/applications/steam.desktop | nc termbin.com 999923:21
xu-help31whttps://termbin.com/m8ri23:22
diogenes_Vx15now run: mousepad ~/.local/share/applications/steam.desktop23:23
xu-help31wIt's open.23:24
diogenes_Vx15under the section [Desktop Entry] modify the name like this: Name=Steam NVIDIA23:24
diogenes_Vx15below find the line: Exec=/usr/bin/steam %U23:24
xu-help31wI see the line.23:25
diogenes_Vx15modify that line like this: Exec=sh -c "__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia /usr/bin/steam"23:25
xu-help31wI've modded the line.23:26
diogenes_Vx15save, close the file, close the steam app completely and run: cat ~/.local/share/applications | nc termbin.com 999923:26
xu-help31wDone23:28
diogenes_Vx15url?23:28
xu-help31wI didn't get one.23:28
diogenes_Vx15oh my bad sorry23:28
diogenes_Vx15cat ~/.local/share/applications/steam.desktop | nc termbin.com 999923:29
diogenes_Vx15this one ^^^23:29
xu-help31whttps://termbin.com/hl3y23:29
xu-help31wGotta go for a bit. I'll let you know when I'm back23:30
diogenes_Vx15ok i gtgtoo, just open steam nvidia and see if GPU utilization is moving and that's all.23:30

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