DNF: how to I check which package installed a specific package? Posted: 08 Aug 2021 10:25 AM PDT example: I can see a package "XYZ" has been installed. I want to find out which package installed XYZ because it's one of its dependencies. Thanks |
How to remove part of line from HTML file Posted: 08 Aug 2021 10:08 AM PDT I have a file, events.html , containing lines (among many other): <td class="EventDate">2021-08-06 12:36:34</td> where date and time strings are different in each line. Like to remove from every such line ONLY time string. |
Only execute subshell script if column 2 in Input.csv has value > 0 Posted: 08 Aug 2021 09:14 AM PDT I have a long linux shell script (.sh) that has some R subshells. I only want to execute a subshell WEurope.sh if column 2 value in Input.csv has a value >0. Here is an example of Input.csv dataframe with column1 header "COUNTRY" and column2 header "VALUE" COUNTRY,VALUE Germany ,0.2 France,0 If any column2 value in Input.csv is greater than 0 then execute subshell "WEurope.sh"" otherwise move on to the next line in the shell script. |
Alpine Linux: Mounting boot media: failed Posted: 08 Aug 2021 09:12 AM PDT I installed Alpine Linux dualbooting with the instructions here. The solutions I found online fixed the boot of the live ISO, not a sys installation, which in theory should not depend on boot media. What's going wrong here? Here is the kernel log. |
How to specify which display i3-lock starts showing the image on? Posted: 08 Aug 2021 08:55 AM PDT I sometimes use a monitor with my laptop. I use i3lock -t -i /path as my locking command and the image I use is of the resolution of my laptop screen. Running this with the monitor connected the puts the initial image on the monitor screen, which is bigger, and then tiles it over to my screen (which is below the monitor). I want it to start tiling it on the laptop screen, so that the image appears properly on my primary screen, and then continue tiling it to the monitor. |
Why is there a libvirt-qemu user (showing on the login screen) and how to remove it? Posted: 08 Aug 2021 08:23 AM PDT I didn't create this user - I think it was added by installing the "Virtual Machine manager" (virt-manager ) on Debian10/KDE. grep -E 'libvirt|qemu' /etc/passwd returns libvirt-qemu:x:6xxxx:1xx:Libvirt Qemu,,,:/var/lib/libvirt:/usr/sbin/nologin I don't have a file /var/lib/AccountsService/users/libvirt-qemu like described in a solution to the 2017 question here and could not find a bug report if it's due to a bug in accountsservice (why does the bug occur / why hasn't it been fixed since?). Why is this user created and how to remove it but still be able to use virt-manager? If the solution is to not remove the user but to hide it by creating the /users/libvirt-qemu file why isn't that done when the user is set up already? If the user is necessary I'd find it strange that iirc it was only added after installing virt-manager but not after installing and using aqemu . |
How to execute a cmd on a bunch of files, where the parameters needed are <filename.ext> and <filename> Posted: 08 Aug 2021 09:18 AM PDT I have a tool that wants a filename.ext to make a bunch of files, and also wants a directory name to put them in. In my case filename/ would do. Directory: Filename1.ext Filename2.ext cmd Filename1.ext Filename cmd Filename2.ext Filename2 I've been trying to tackle it via find, but maybe there is a better way? find . -iname "*.ext" -exec cmd ... ? |
Cannot open gnome-control-center in Pop OS 21.04 Posted: 08 Aug 2021 07:58 AM PDT Recently i upgraded to pop os 21.04 and from then i cannot open gnome-control-center if i try to open it with terminal i get this message (gnome-control-center:22891): GLib-GIO-ERROR **: 20:25:35.716: Settings schema 'org.gnome.desktop.screensaver' does not contain a key named 'ubuntu-lock-on-suspend' |
Disable GTT on amdgpu? Posted: 08 Aug 2021 07:47 AM PDT How can I disable GTT on amdgpu? According to https://www.kernel.org/doc/html/v4.20/gpu/amdgpu.html, adding amdgpu.gttsize=0 should work but that has no effect. The reason why I am asking is, that my Vega 8 graphics (of my AMD Ryzen 7 PRO 5850U cpu) already has 4GB VRAM and takes another 4GB of GTT. As the GTT memory is cut off from my "regular" 16 GB memory but I mainly use my CPU over my GPU (compiling, databases...), I only can use 12GB of it. |
Can you customise the UI / Icons used when running an app via sudo? Posted: 08 Aug 2021 09:03 AM PDT Is there a way in Linux to set the desired icon sets and themes used when running apps as sudo. At the moment if I, for example, type ... sudo gedit /et/fstab Then if I click Save As then the file save dialog doesn't match my own desktop environment settings, it seems to use default icons and the default theme (Adwaita). Is there anywhere this can be configured so that they match (or even better I'd like to make them largely the same but with different colours to indicate I'm running elevated). I'm running Gnome on Manjaro if it's relevant. I have tried a direct gsettings command line call: sudo gsettings set org.gnome.desktop.interface icon-theme 'Tela-red-dark' but that doesn't work, it did point me to look at doing my next thing which explained kind of why this didn't work. I have tried running dconf-editor under sudo but that only offers limited options, excluding the desktop settings required to configure such things. Is this an OS limitation or is there somewhere deeper down that I can configure the 'default' settings? As I was interested, I also ran this... sudo gsettings get org.gnome.desktop.interface icon-theme To confuse my brain further, rather than returning Adwaita (which is what's used in the sudo run GUI windows) it returned Papirus-Dark-Maia which is the default icon theme that's used if you create a fresh new user in Manjaro. |
Second monitor connected on xrandr but displaying no signal on Arch laptop Posted: 08 Aug 2021 07:40 AM PDT Originally the second monitor was simply labeled disconnected by xrandr. However, after installing the nvidia driver rather than the nvidia-nouveau driver, the monitor came up as connected. However, it simply displays no signal and my mouse cannot leave the border of my laptop screen. My laptop is running arch and the WM is dwm. My xrandr output is Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384 eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm 1920x1080 144.00*+ 60.01 59.97 59.96 59.93 1680x1050 144.00 59.95 59.88 1400x1050 74.76 59.98 1600x900 59.99 59.94 59.95 59.82 1280x1024 144.00 85.02 75.02 60.02 1440x900 144.00 1400x900 59.96 59.88 1280x960 85.00 60.00 1440x810 60.00 59.97 1368x768 59.88 59.85 1280x800 144.00 59.99 59.97 59.81 59.91 1152x864 75.00 1280x720 144.00 60.00 59.99 59.86 59.74 1024x768 144.00 85.00 75.05 60.04 85.00 75.03 70.07 60.00 1024x768i 86.96 960x720 85.00 75.00 60.00 928x696 75.00 60.05 896x672 75.05 60.01 1024x576 59.95 59.96 59.90 59.82 960x600 59.93 60.00 832x624 74.55 960x540 59.96 59.99 59.63 59.82 800x600 144.00 85.00 75.00 70.00 65.00 60.00 85.14 72.19 75.00 60.32 56.25 840x525 60.01 59.88 864x486 59.92 59.57 700x525 74.76 59.98 800x450 59.95 59.82 640x512 85.02 75.02 60.02 700x450 59.96 59.88 640x480 144.00 85.09 60.00 85.01 72.81 75.00 59.94 720x405 59.51 58.99 720x400 85.04 684x384 59.88 59.85 640x400 59.88 59.98 85.08 576x432 75.00 640x360 59.86 59.83 59.84 59.32 640x350 85.08 512x384 85.00 75.03 70.07 60.00 512x384i 87.06 512x288 60.00 59.92 416x312 74.66 480x270 59.63 59.82 400x300 85.27 72.19 75.12 60.32 56.34 432x243 59.92 59.57 320x240 85.18 72.81 75.00 60.05 360x202 59.51 59.13 360x200 85.04 320x200 85.27 320x180 59.84 59.32 320x175 85.27 DP-1-0 disconnected (normal left inverted right x axis y axis) DP-1-1 disconnected (normal left inverted right x axis y axis) HDMI-1-0 connected (normal left inverted right x axis y axis) 1920x1080 60.00 + 60.00 59.94 50.00 50.00 29.97 23.98 1680x1050 59.95 1280x1024 75.02 60.02 1280x960 75.00 1280x720 60.00 59.94 50.00 1152x864 75.00 60.00 1024x768 75.03 70.07 60.00 800x600 75.00 60.32 720x576 50.00 720x480 59.94 640x480 75.00 59.94 DP-1-2 disconnected (normal left inverted right x axis y axis) 1680x1050 (0x4b) 146.250MHz -HSync +VSync h: width 1680 start 1784 end 1960 total 2240 skew 0 clock 65.29KHz v: height 1050 start 1053 end 1059 total 1089 clock 59.95Hz 1280x1024 (0x55) 135.000MHz +HSync +VSync h: width 1280 start 1296 end 1440 total 1688 skew 0 clock 79.98KHz v: height 1024 start 1025 end 1028 total 1066 clock 75.02Hz 1280x1024 (0x56) 108.000MHz +HSync +VSync h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 63.98KHz v: height 1024 start 1025 end 1028 total 1066 clock 60.02Hz 1152x864 (0x65) 108.000MHz +HSync +VSync h: width 1152 start 1216 end 1344 total 1600 skew 0 clock 67.50KHz v: height 864 start 865 end 868 total 900 clock 75.00Hz 1024x768 (0x70) 78.750MHz +HSync +VSync h: width 1024 start 1040 end 1136 total 1312 skew 0 clock 60.02KHz v: height 768 start 769 end 772 total 800 clock 75.03Hz 1024x768 (0x71) 75.000MHz -HSync -VSync h: width 1024 start 1048 end 1184 total 1328 skew 0 clock 56.48KHz v: height 768 start 771 end 777 total 806 clock 70.07Hz 1024x768 (0x72) 65.000MHz -HSync -VSync h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz v: height 768 start 771 end 777 total 806 clock 60.00Hz 800x600 (0x8e) 49.500MHz +HSync +VSync h: width 800 start 816 end 896 total 1056 skew 0 clock 46.88KHz v: height 600 start 601 end 604 total 625 clock 75.00Hz 800x600 (0x8f) 40.000MHz +HSync +VSync h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz v: height 600 start 601 end 605 total 628 clock 60.32Hz 640x480 (0xa3) 31.500MHz -HSync -VSync h: width 640 start 656 end 720 total 840 skew 0 clock 37.50KHz v: height 480 start 481 end 484 total 500 clock 75.00Hz 640x480 (0xa4) 25.175MHz -HSync -VSync h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz v: height 480 start 490 end 492 total 525 clock 59.94Hz and xrandr --listproviders gives Providers: number : 2 Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 1 associated providers: 1 name:modesetting Provider 1: id: 0x277 cap: 0x2, Sink Output crtcs: 4 outputs: 4 associated providers: 1 name:NVIDIA-G0 my relevant lspci -nnk output is 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] [10de:1f95] (rev a1) Subsystem: Lenovo Device [17aa:3a3e] Kernel driver in use: nvidia Kernel modules: nouveau, nvidia_drm, nvidia 05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [1002:1636] (rev c6) Subsystem: Lenovo Device [17aa:3a3e] Kernel driver in use: amdgpu Kernel modules: amdgpu I have tried xrandr --output "eDP-1" --auto --output "HDMI-1-0" --above "eDP-1" however that did nothing. xrandr --output "HDMI-1-0" --set audio force-dvi --mode 1920x1080 results in X Error of failed request: BadName (named color or font does not exist) Major opcode of failed request: 140 (RANDR) Minor opcode of failed request: 11 (RRQueryOutputProperty) Serial number of failed request: 51 Current serial number in output stream: 51 I tried adding amdgpu.dc=0 to my kernel boot parameters via GRUB however that just results in the login screen not loading properly and the graphics look messed up. I also tried changing the HDMI cable but I still get the same issue. I ran into a similar problem on Ubuntu ages ago but I managed to fix it by messing around with the drivers, however, unfortunately I can't remember what I did. Some weird things I've noticed: When I plug in the second monitor sometimes the screen brightness on the primary monitor goes to 20 (out of a maximum of 255). When I plug in the monitor the Xorg.0.log shows [ 1597.016] (--) NVIDIA(GPU-0): LG Electronics M2762DP (DFP-2): connected [ 1597.016] (--) NVIDIA(GPU-0): LG Electronics M2762DP (DFP-2): Internal TMDS [ 1597.016] (--) NVIDIA(GPU-0): LG Electronics M2762DP (DFP-2): 600.0 MHz maximum pixel clock This is strange as I'd assume the second monitor would be HDMI-1-0 but here it seems to be DFP-2 despite that not showing up in the xrandr. However, I may just be misunderstanding what the log is saying. Any help would be greatly appreciated! Thanks :) |
Permission denied (publickey) Posted: 08 Aug 2021 08:58 AM PDT there are several questions like this on the website but I have not been able to find one that resolves my issue. I am performing some experiments regarding adaptive bitrate video streaming, and need one (server) node, which I can SSH into using FIP, to be able to access several (client) nodes, which do not have an FIP, but were made with the same private key that I have passed into my server using FTP. So, all of my nodes were created using the key my_chameleon_key.pem . I have a remote connection established between myself and the server. Now, when I try and do an ssh from the server to the client, using ssh -i ~/.ssh/my_chameleon_key.pem -vT cc@<client_ip> where server_ip is an arbitrary selection from my list of client IP addresses, I get the following output: OpenSSH_7.2p2 Ubuntu-4ubuntu2.10, OpenSSL 1.0.2g 1 Mar 2016 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to <server_ip> [<server_ip>] port 22. debug1: Connection established. debug1: key_load_public: No such file or directory debug1: identity file /home/cc/.ssh/my_chameleon_key.pem type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/cc/.ssh/my_chameleon_key.pem-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.10 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.10 debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.10 pat OpenSSH* compat 0x04000000 debug1: Authenticating to <server_ip>:22 as 'cc' debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: curve25519-sha256@libssh.org debug1: kex: host key algorithm: ecdsa-sha2-nistp256 debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ecdsa-sha2-nistp256 SHA256:QaA4NOIFUybFLYXHcbg8iHuGUw1Komvn+o4Mx5bdf14 debug1: Host '<server_ip>' is known and matches the ECDSA host key. debug1: Found key in /home/cc/.ssh/known_hosts:1 debug1: rekey after 134217728 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: rekey after 134217728 blocks debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512> debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Trying private key: /home/cc/.ssh/my_chameleon_key.pem debug1: Authentications that can continue: publickey debug1: No more authentication methods to try. Permission denied (publickey). Again, server_ip is a client IP. ls ~/.ssh outputs authorized_keys known_hosts my_chameleon_key.pem and I have verified that my_chameleon_key.pem was not modified during transfer. I'm sure part of this is that I do not know how to navigate the -vT trace, but I am totally stumped here. What should I do to resolve this? All servers are CC-Ubuntu16.04 and running with sudo didn't help if this is useful info. Let me know if I can provide anything else. EDIT: By this point I have already ran several commands, so /var/log/auth.log is already pretty clogged. Here are the most recent things, which should (theoretically) be my SSH... however, it does not update when I try and SSH again, so I'm not sure. Aug 8 15:47:16 mwhicks2abvsserver sshd[46351]: Accepted publickey for cc from 24.211.146.9 port 52223 ssh2: RSA SHA256:a6N6S9PllSObVyDZXJdG1GWUOkKhFTpIJ3Rae4sW8uQ Aug 8 15:47:16 mwhicks2abvsserver sshd[46351]: pam_unix(sshd:session): session opened for user cc by (uid=0) Aug 8 15:47:16 mwhicks2abvsserver systemd-logind[2861]: New session 8 of user cc. Also, here is a link to my full auth.log file. It was too long for me to consider putting it here. https://pastebin.com/vsyXD7bM |
Python PyPI, asynchronous updates, reactionary requirements, avoid breaking distro - solution I came up with safe? How to automate? Posted: 08 Aug 2021 07:30 AM PDT Context Personal context: Inexperienced Linux user, learning Python, hoping to apply it to Natural Language Processing on NoSQL databases. Why GNU/Linux: My budget is small, my old gear ain't broke at all, but can't bear the burdens Windows lays on it. Experimented with splurging on new top-of-the-line workstations from manufacturers that used to have a reputation for quality, guarantees, documentation, and good aftermarket service. Went through something like this. Not doing so again. GNU/Linux is customizable and, with the right config, very lightweight. Setup: I've got one of them running MX-19 with Fluxbox as a "desktop environment", another running Fedora 34 with LXQT, and I'm considering setting another up with either Arch or Gentoo, as I'm told that, though time-consuming, installing these would allow me to understand UNIX-like architectures well, and really tailor things to my machines. I'm falling in love with Linux the way Sam Vimes fell in love with Lady Sybil - started off just glad for what I could get, but the more acquainted I got, the more in love I fell. It's not entirely free of conflict, though, no pun intended. The Problems with GNU/Linux Distros, which aggravates The Problem With Python: Most applications and librariess I use are Python-based packages as needed, but they're not always included in distro-authorized repos, nor are they always up to date, if included at all. Aside from my work, this also applies to the ProtonVPN client and ProtonMail bridge, which are darlings of mine. I install them in every system I have. On Windows and Android, it's trivial, and Debian and Fedora have supported rpm, but their fork distros don't necessarily do so. So I had to resort to the next best thing: Installing from PyPI and Installing from Source: So I've been installing from PyPI using pyton3 -m pip install <packagename> In cases where the software maker doesn't update their PyPI copy, or updates one of their pieces of software and not the other while they are both reliant on different versions of the same libraries, creating dependency conflicts... well, I need to compile from source. I clone the git, cd to the source's root directory, and run: pyton3 -m pip install . Dependency Management Problems: the Special Case of Python & pip: - this year was the painful transition between python 2.7 and python 3... we're already up to the nines, the elevens are under discussion, pip likewise updates frequently and then warns you constantly if it's not up-to-date.
- meanwhile, a lot of developers have excessively strict requirements: "my software needs this specific version of this package - not 'later than', no, this one specifically" or "no more recent than". Typical solution: use a virtual environment. Two problems with that:
- having virtual environments for every single package is complicated to keep track of and manage, and my old gear has limited drive and RAM that I can't be frivolous with.
- deciding which packages to put in virtual environments and which not to is its own time-consuming problem.
- even with a venv, if the dependence tree of packages contains contradictions, you can end up with an endless cycle of pip installing a package's upgrade that requires another's downgrade, which in turn pip'll then want to upgrade, which will cause conflict with the first one, etc.
- For example, a package has RequirementA < 2.1.5 and RequirementB >2.3, but versions of A previous to 2.1.5 require C < 4.1 while versions of B > 2.4 require C > 5.2. C can't be > 5.2 AND < 4.1. It can turn into a bit of a comedy routine.
The Question Proper: I've come up with something that seems to work for now, which I'll be putting as a reply below, but I'm not confident that I did it well. It should be straightforward to automate, with some bash scripting, pipes, regex... But, before I commit to this particular approach and make it systemic, I'd like to hear the opinions of experienced Linux users. What, in your judgment, would be a method that: a) ideally takes advantage of GNU/Linux's unique strengths, while also b) not messing up whichever particular distro one may be using, c) that is algorithmically sound and safe to execute d) that could be reasonably automated for unattended upgrade, and e) which would check for mistakes along the way and allow me to walk them back? - Especially when it comes to installing from source, which usually requires getting required dependencies from PyPl anyway. |
Xorg starts but does not show any graphics on Debian with Nvidia card (new install) Posted: 08 Aug 2021 07:13 AM PDT I'm trying to set up Debian on a brand new computer. My goal is to have i3vm working (with Xorg), and I don't need lightdm since I prefer logging directly with cli on tty1 and then having an automated exec startx script. So far, I've got Debian running, I've followed the official documentations for installing drivers, Xorg and i3vm but, when I startx, I don't see any Xorg graphic, the terminal just seems to hang. I know i3vm is running "somewhere" since I can (blindly) open a terminal and create a file using i3 shortcuts. I don't have any errors showing up in /var/log/Xorg.0.log at the moment, but since I've tried a lot of configuration options, it's probable that my config file is wrong. The main issue I have with this new computer that I didn't have with my previous i3vm installs is the NVidia graphics card. I've tried using the prepacked nouveau driver installed by Xorg which did produced the same outcome, I've tried installing Nvidia drivers (version 470.52.02) using buster-backports and it produced errors such as unable to load glx module and now I'm using the Nvidia drivers installed from their website with nvidia-installer . This is the output from /var/log/Xorg.0.log after I run startx https://hastebin.com/wotixewumo This is my current xorg.conf file (generated by nvidia-xconfig ) https://hastebin.com/erijopuqip This is the output from nvidia-smi which should confirm the nvidia driver is installed +-----------------------------------------------------------------------------+ | NVIDIA-SMI 470.57.02 Driver Version: 470.57.02 CUDA Version: 11.4 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A | | N/A 50C P8 1W / N/A | 6MiB / 3914MiB | 0% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 1212 G /usr/lib/xorg/Xorg 5MiB | +-----------------------------------------------------------------------------+ My laptop specs: DELL XPS 15 (9500) 2020 Laptop - Screen: 15.6" FHD+ (1920x1200) InfinityEdge Non-Touch
- GPU: NVIDIA GeForce GTX 1650 Ti 4GB GDDR6
- OS: Debian Buster with linux 4.19.0-17-amd64
The laptop included both integrated Intel graphics and the Nvidia card, as suggested by running lspci -nn | egrep -i "3d|display|vga" 00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:9bc4] (rev 05) 01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1f95] (rev a1) As per https://wiki.debian.org/NVIDIA%20Optimus#PRIMEOffload the PRIME Offload technology should be working to avoid doing everything on one GPU. Also, as suggested by blog posts, I tried running without any xorg.conf and had the following error: (EE) Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices (full Xorg log without config file: https://hastebin.com/urufapafin) Does anyone recognize this issue ? (Xorg started but not showing any graphics without producing errors) (I'm sorry if I'm not fully detailing all the solutions I've tried after searching my issues online, but I've been trying stuff for the last three days and I don't remember them all...) |
Brightness control not working - Linux Mint 20.2 Posted: 08 Aug 2021 07:03 AM PDT I can't control the screen brightness on my new Dell XPS-15-9510 when using Linux. I have dual-boot with a fresh install of Linux Mint with the following specs: $ uname -a Linux XPS-15-9510 5.4.0-80-generic #90-Ubuntu SMP Fri Jul 9 22:49:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux $ cat /etc/*release* DISTRIB_ID=LinuxMint DISTRIB_RELEASE=20.2 DISTRIB_CODENAME=uma DISTRIB_DESCRIPTION="Linux Mint 20.2 Uma" NAME="Linux Mint" VERSION="20.2 (Uma)" ID=linuxmint ID_LIKE=ubuntu PRETTY_NAME="Linux Mint 20.2" VERSION_ID="20.2" HOME_URL="https://www.linuxmint.com/" SUPPORT_URL="https://forums.linuxmint.com/" BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/" PRIVACY_POLICY_URL="https://www.linuxmint.com/" VERSION_CODENAME=uma UBUNTU_CODENAME=focal This is what I have under the /sys/class/backlight folder: $ ll /sys/class/backlight/ total 0 lrwxrwxrwx 1 root root 0 Aug 8 06:22 dell_backlight -> ../../devices/platform/dell-laptop/backlight/dell_backlight/ I have an NVIDIA GeForce RTX 3050 Ti graphics card with the following drivers installed: $ apt list *xorg* Listing... Done fcitx5-module-xorg/focal 0.0~git20200128.9e3bc8d+ds1-3 amd64 libxorg-gtest-data/focal,focal 0.7.1-5ubuntu1 all libxorg-gtest-dev/focal,focal 0.7.1-5ubuntu1 all libxorg-gtest-doc/focal,focal 0.7.1-5ubuntu1 all tigervnc-xorg-extension/focal 1.10.1+dfsg-3 amd64 xorg-dev/focal,focal 1:7.7+19ubuntu14 all xorg-docs-core/focal,focal,now 1:1.7.1-1.1 all [installed] xorg-docs/focal,focal 1:1.7.1-1.1 all xorg-server-source-hwe-18.04/focal 3:14.5 amd64 xorg-server-source/focal-updates,focal-updates 2:1.20.11-1ubuntu1~20.04.2 all xorg-sgml-doctools/focal,focal 1:1.11-1 all xorg/focal,now 1:7.7+19ubuntu14 amd64 [installed] xorgxrdp/focal 1:0.2.12-1 amd64 xserver-xorg-core-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-core/focal-updates,now 2:1.20.11-1ubuntu1~20.04.2 amd64 [installed] xserver-xorg-core/focal-updates,focal-security 2:1.20.9-2ubuntu1.2~20.04.2 i386 xserver-xorg-dev-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-dev/focal-updates 2:1.20.11-1ubuntu1~20.04.2 amd64 xserver-xorg-dev/focal-updates,focal-security 2:1.20.9-2ubuntu1.2~20.04.2 i386 xserver-xorg-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-input-all-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-input-all/focal,now 1:7.7+19ubuntu14 amd64 [installed] xserver-xorg-input-evdev-dbg/focal 1:2.10.6-1 amd64 xserver-xorg-input-evdev-dev-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-input-evdev-dev/focal,focal 1:2.10.6-1 all xserver-xorg-input-evdev-hwe-18.04-dbg/focal 3:14.5 amd64 xserver-xorg-input-evdev-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-input-evdev/focal 1:2.10.6-1 amd64 xserver-xorg-input-joystick-dev-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-input-joystick-dev/focal,focal 1:1.6.3-1build1 all xserver-xorg-input-joystick-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-input-joystick/focal 1:1.6.3-1build1 amd64 xserver-xorg-input-kbd/focal 1:1.9.0-1build1 amd64 xserver-xorg-input-libinput-dev-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-input-libinput-dev/focal,focal 0.29.0-1 all xserver-xorg-input-libinput-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-input-libinput/focal,now 0.29.0-1 amd64 [installed] xserver-xorg-input-mouse/focal 1:1.9.3-1build1 amd64 xserver-xorg-input-mtrack-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-input-mtrack/focal 0.3.1-1build2 amd64 xserver-xorg-input-multitouch/focal 1.0~rc3-2 amd64 xserver-xorg-input-synaptics-dev-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-input-synaptics-dev/focal,focal 1.9.1-1ubuntu3 all xserver-xorg-input-synaptics-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-input-synaptics/focal 1.9.1-1ubuntu3 amd64 xserver-xorg-input-void/focal 1:1.4.1-1build3 amd64 xserver-xorg-input-wacom-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-input-wacom/focal,now 1:0.39.0-0ubuntu1 amd64 [installed] xserver-xorg-input-xwiimote/focal 0.5-1build3 amd64 xserver-xorg-legacy-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-legacy/focal-updates,now 2:1.20.11-1ubuntu1~20.04.2 amd64 [installed] xserver-xorg-legacy/focal-updates,focal-security 2:1.20.9-2ubuntu1.2~20.04.2 i386 xserver-xorg-video-all-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-video-all/focal,now 1:7.7+19ubuntu14 amd64 [installed] xserver-xorg-video-amdgpu-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-video-amdgpu/focal,now 19.1.0-1 amd64 [installed] xserver-xorg-video-ati-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-video-ati/focal,now 1:19.1.0-1 amd64 [installed] xserver-xorg-video-dummy-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-video-dummy/focal 1:0.3.8-1build3 amd64 xserver-xorg-video-fbdev-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-video-fbdev/focal,now 1:0.5.0-1ubuntu1 amd64 [installed] xserver-xorg-video-intel-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-video-intel/focal,now 2:2.99.917+git20200226-1 amd64 [installed] xserver-xorg-video-mga/focal 1:2.0.0-1 amd64 xserver-xorg-video-nouveau-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-video-nouveau/focal,now 1:1.0.16-1 amd64 [installed] xserver-xorg-video-nvidia-390/focal-updates,focal-security 390.144-0ubuntu0.20.04.1 amd64 xserver-xorg-video-nvidia-390/focal-updates,focal-security 390.144-0ubuntu0.20.04.1 i386 xserver-xorg-video-nvidia-418-server/focal-updates,focal-security 418.211.00-0ubuntu0.20.04.1 amd64 xserver-xorg-video-nvidia-418/focal 430.50-0ubuntu3 amd64 xserver-xorg-video-nvidia-430/focal-updates,focal-security 440.100-0ubuntu0.20.04.1 amd64 xserver-xorg-video-nvidia-435/focal-updates 455.45.01-0ubuntu0.20.04.1 amd64 xserver-xorg-video-nvidia-440-server/focal-updates,focal-security 450.142.00-0ubuntu0.20.04.1 amd64 xserver-xorg-video-nvidia-440/focal-updates,focal-security 450.119.03-0ubuntu0.20.04.1 amd64 xserver-xorg-video-nvidia-450-server/focal-updates,focal-security 450.142.00-0ubuntu0.20.04.1 amd64 xserver-xorg-video-nvidia-450/focal-updates,focal-security 460.91.03-0ubuntu0.20.04.1 amd64 xserver-xorg-video-nvidia-455/focal-updates,focal-security 460.91.03-0ubuntu0.20.04.1 amd64 xserver-xorg-video-nvidia-460-server/focal-updates,focal-security 460.91.03-0ubuntu0.20.04.1 amd64 xserver-xorg-video-nvidia-460/focal-updates,focal-security 460.91.03-0ubuntu0.20.04.1 amd64 xserver-xorg-video-nvidia-465/focal-updates,focal-security 470.57.02-0ubuntu0.20.04.1 amd64 xserver-xorg-video-nvidia-470-server/focal-updates 470.57.02-0ubuntu0.20.04.2 amd64 xserver-xorg-video-nvidia-470/focal-updates,focal-security,now 470.57.02-0ubuntu0.20.04.1 amd64 [installed,automatic] xserver-xorg-video-openchrome-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-video-openchrome/focal 1:0.6.0-3build1 amd64 xserver-xorg-video-qxl-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-video-qxl/focal,now 0.1.5+git20200331-1 amd64 [installed] xserver-xorg-video-radeon-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-video-radeon/focal,now 1:19.1.0-1 amd64 [installed] xserver-xorg-video-vesa-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-video-vesa/focal,now 1:2.4.0-2 amd64 [installed] xserver-xorg-video-vmware-hwe-18.04/focal 3:14.5 amd64 xserver-xorg-video-vmware/focal,now 1:13.3.0-3 amd64 [installed] xserver-xorg/focal,now 1:7.7+19ubuntu14 amd64 [installed] However, the following commands tell me that it is not recognized: $ lspci -k | grep -A 2 -i "VGA" 0000:00:02.0 VGA compatible controller: Intel Corporation Device 9a60 (rev 01) DeviceName: Onboard - Video Subsystem: Dell Device 0a61 $ nvidia-smi NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. I also noticed this device is inactive: $ systemctl status sys-devices-platform-dell\x2dlaptop-backlight-dell_backlight.device ● sys-devices-platform-dellx2dlaptop-backlight-dell_backlight.device - /sys/devices/platform/dellx2dlaptop/backlight/dell_backlight Loaded: loaded Active: inactive (dead) Some guide suggested to change the setting GRUB_CMDLINE_LINUX_DEFAULT from quiet splash to acpi_backlight=vendor in /etc/default/grub : ... GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="acpi_backlight=vendor" GRUB_CMDLINE_LINUX="" ... This way, when I press F6 and F7 , I can see the brightness overlay icon with the values changing but nothing actually happens. Also, now I see this log in journalctl every time I press the keys: Aug 08 07:04:55 XPS-15-9510 pkexec[7048]: alex: Executing command [USER=root] [TTY=unknown] [CWD=/home/alex] [COMMAND=/usr/libexec/csd-backlight-helper --set-brightness 8 -b firmware -b platform -b raw] Aug 08 07:04:55 XPS-15-9510 pkexec[7058]: pam_unix(polkit-1:session): session opened for user root by (uid=1000) Which seems like it's doing something but actually it is not... All I want to do is control the backlight with the two function keys but I think the root cause is the Nvidia card not being recognized. Anyone have ideas/links to working solutions? Thanks :) |
How to move interface into nonstandard network namespace Posted: 08 Aug 2021 10:20 AM PDT I have a Linux network namespace bind mounted at ~/mynamespace as follows: unshare -mrn; touch ~/mynamespace; # executed in the console opened by the first command unshare --net=~/mynamespace true; # executed in the console opened by the first command How can I move an interface from the anonymous network namespace created by command #1 into the namespace bind mounted at ~/mynamespace ? Note that bind mounting the inner namespace or a copy of it into /var/run/netns is not an option in my case, not even temporarily. I think that the ip ... netns related commands will only accept a network namespace which is bind mounted in the more standard /var/run/netns/ directory. So I don't think the ip command will work in this case. |
Is there any way of making the shortcut Meta + Arrows work for resizing windows on LXQt 0.14.1? Posted: 08 Aug 2021 09:59 AM PDT I've installed OSGeoLive 14 inside a virtual machine. It uses LXQt as its graphical interface, but it bothers me that the shortcuts Meta+← or Meta+→ don't work on it. I'd like to do something like the following: In this case, I used a different Virtual machine where the command Meta+→ works fine. Is there any way of configuring this shortcut on LXQt when it's deactivated for some reason? I just want to be able to resize my windows vertically after opening them. |
How to configure cache memory to automatically sync on program close? Posted: 08 Aug 2021 08:18 AM PDT Currently I have an issue with programs not de-allocating their stack upon close. It appears to be a natural behaviour of Linux page caching. When I open my desktop, it runs at ~300-500MB. After closing a browser to open perhaps another RAM intensive program like Ardour, I notice that the used RAM drops down but the allocated RAM remains largely the same or at best drops to around 2.2GB. The same issue is discussed on this thread. The solution I found there was to run the following command which clears PageCache only: sync; echo 1 > /proc/sys/vm/drop_caches The following clears dentries and inodes: sync; echo 2 > /proc/sys/vm/drop_caches The following clears both PageCace AND dentries and inodes: sync; echo 3 > /proc/sys/vm/drop_caches However, I don't want to run this every time. I want to have my workspace free to utilize every bit of RAM between programs. Is there a way to configure PageCache on a system level or do I need to do something janky like running a service with some kind of listener which then triggers the above command on program close? See the following example, whilst Brave is open: And another after closing Here is the RAM on boot: System info: kernel: 5.10.56-1-lts Flava: Arch Desktop: i3-gaps Programs tested: Brave, Chromium, Firefox, Ardour, Gimp, Inkscape |
Python tkinter GUI is being pushed behind GDM3 polkit password window Posted: 08 Aug 2021 07:21 AM PDT It seems that my Python PAM RFID solution development has come to an end 🎉 and I finally finished developing kind of working GUI solution as well. Issue But, of course I ran into one final issue 😑 - my GUI is being forced behind all GDM run windows - password window, login and lock screen window. I've double checked - YES the GUI runs without errors and shows up when needed - BUT it doesn't show on top of windows being run by GDM. How it works - Python PAM module listens for RFID card on NFC scanner
- Once card present - it auto-fills user credentials and starts authentication process via remote server
- Server responds with status codes
- Python PAM module shows
tkinter window (PIN, Register, Error) according to received state - User interacts with form and actions are being done on user behalf in background as well as reply status are being send to remote server.
Example of an error Here is a screenshot how it looks on password window (: I made password window little bit more opaque, so you could see that the GUI is there. Whatever I do (ALT +TAB , TAB anything that could bring the window up) doesn't work. The same happens on login/lock screen - only those are not opaque and it seems that they are not working, however, when I enter password and log back in, I see my previously (on login/lock screen) triggered GUI like so: My tries to fix it - I tried to add these attributes to my
tkinter root: tk_root.attributes('-topmost', True) tk_root.call('wm', 'attributes', '.', '-topmost', '1') but obviously gdm3 is being forced on top of everything and this won't simply do the trick.😑 Question How can I fix this? What would be the best and safest way to force my tkinter or any other Python GUI script/app on top of gdm3 GUIs? At this point I'm open to anything - it can be something other than tkinter that will work on top of the GDM3 windows. Out of the box solutions are welcomed as well. Thank you in advance, 🙏🏻 richardev |
Debian 10 won't boot without monitor on integrated GPU Posted: 08 Aug 2021 07:13 AM PDT I am running Debian 10 with an i7 4770K and two GTX 780TI. My monitors are on HDMI, DVI, and DVI. All 1080p60. If I connect all my displays to my GPU then my PC will POST and go to GRUB like normal, but once I hit enter on GRUB I just get a blinking white cursor and nothing happens. If I connect my HDMI display to the integrated GPU via the motherboard ports (while leaving my DVI displays on the GPU) then I see POST, GRUB, and then the typical Linux command line boot text scroll past for 10-15 seconds then a black screen. At this point I have to unplug my HDMI monitor from my motherboard and plug it into my GPU and I will see the login screen where I can login and use the OS like normal. The only exception being that if I try to access another virtual terminal (ctrl-alt-F3, F4, etc.) I get a black screen. But if I unplug my HDMI monitor from the GPU and plug it into the motherboard then I see the virtual terminal and can use it. I am genuinely confused by this and not sure what to do. |
Laptop randomly crashing and turning off Posted: 08 Aug 2021 08:38 AM PDT For the last few days, and I don't remember what changed, my laptop has been randomly turning off once a day. last -x | head | tac returns reboot system boot 5.13.4-arch2-1 Mon Jul 26 08:30 - 09:43 (01:12) kon5oul tty7 :0 Mon Jul 26 08:30 - 09:43 (01:12) shutdown system down 5.13.4-arch2-1 Mon Jul 26 09:43 - 09:43 (00:00) reboot system boot 5.13.4-arch2-1 Mon Jul 26 09:43 still running kon5oul tty7 :0 Mon Jul 26 09:43 - crash (05:00) reboot system boot 5.13.4-arch2-1 Mon Jul 26 14:44 still running kon5oul tty7 :0 Mon Jul 26 14:44 - crash (01:59) reboot system boot 5.13.4-arch2-1 Mon Jul 26 16:43 still running kon5oul tty7 :0 Mon Jul 26 16:43 still logged in And as soon as this happens, I check if the backside is overheated. I find it quite normal. Is it a battery issue? How should I go about it? I use Archlinux. |
v4l-utils for CentOS Stream 8? Posted: 08 Aug 2021 09:16 AM PDT I have problems with webcam and I need v4l-utils package. As per this page: https://centos.pkgs.org/7/centos-x86_64/v4l-utils-0.9.5-4.el7.x86_64.rpm.html It was availbel in CentOS 7 official repos. However for CentOS Stream 8 I cannot find it: $ sudo dnf search v4l-utils Last metadata expiration check: 13:59:10 ago on Sat 15 May 2021 10:19:51 CEST. No matches found. [admin@localhost ~]$ sudo dnf search v4l2-utils Last metadata expiration check: 13:59:55 ago on Sat 15 May 2021 10:19:51 CEST. No matches found. - Why was the package deprecated?
- What has replaced it?
- Any other hints for uvcvideo diagnostics?
|
Do command line options take an equals sign between option name and value? Posted: 08 Aug 2021 07:04 AM PDT Just using kubectl as an example, I note that kubectl run --image nginx ... and kubectl run --image=nginx ... both work. For command-line programs in general, is there a rule about whether an equals sign is allowed/required between the option name and the value? |
Unmet dependencies: libjpeg8 (>= 8c) but it is not installable when installing R Posted: 08 Aug 2021 08:19 AM PDT I'm getting unmet dependencies when trying to install R on Debian 9 (stretch). Specifically, running: $ sudo apt-get install r-base-core results in Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: r-base-core : Depends: libjpeg8 (>= 8c) but it is not installable Recommends: r-recommended but it is not going to be installed Recommends: r-base-dev but it is not going to be installed Recommends: r-doc-html but it is not going to be installed E: Unable to correct problems, you have held broken packages. Could anyone help? I have googled around this question but cannot come up with any fix. Thanks EDIT: The output of apt policy is: Package files: 100 /var/lib/dpkg/status release a=now 500 http://repository.spotify.com stable/non-free i386 Packages release v=0.4,o=Spotify LTD,a=stable,n=stable,l=Spotify Public Repository,c=non-free,b=i386 origin repository.spotify.com 500 http://repository.spotify.com stable/non-free amd64 Packages release v=0.4,o=Spotify LTD,a=stable,n=stable,l=Spotify Public Repository,c=non-free,b=amd64 origin repository.spotify.com 500 https://repo.skype.com/deb stable/main amd64 Packages release o=. stable,a=stable,n=stable,l=. stable,c=main,b=amd64 origin repo.skype.com 500 https://desktop-download.mendeley.com/download/apt stable/main i386 Packages release n=stable,c=main,b=i386 origin desktop-download.mendeley.com 500 https://desktop-download.mendeley.com/download/apt stable/main amd64 Packages release n=stable,c=main,b=amd64 origin desktop-download.mendeley.com 500 http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu bionic/main i386 Packages release v=18.04,o=LP-PPA-maarten-baert- simplescreenrecorder,a=bionic,n=bionic,l=SimpleScreenRecorder,c=main,b=i386 origin ppa.launchpad.net 500 http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu bionic/main amd64 Packages release v=18.04,o=LP-PPA-maarten-baert-simplescreenrecorder,a=bionic,n=bionic,l=SimpleScreenRecorder,c=main,b=amd64 origin ppa.launchpad.net 500 http://deb.debian.org/debian stretch/main i386 Packages release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=i386 origin deb.debian.org 500 http://deb.debian.org/debian stretch/main amd64 Packages release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64 origin deb.debian.org 500 https://dl.winehq.org/wine-builds/debian stretch/main i386 Packages release v=9.0,o=dl.winehq.org,a=stable,n=stretch,l=winehq,c=main,b=i386 origin dl.winehq.org 500 https://dl.winehq.org/wine-builds/debian stretch/main amd64 Packages release v=9.0,o=dl.winehq.org,a=stable,n=stretch,l=winehq,c=main,b=amd64 origin dl.winehq.org 500 http://cran.rstudio.com/bin/linux/debian stretch-cran34/ Packages release o=CRAN,a=stretch-cran34,n=stretch-cran34,l=CRAN Backports,c= origin cran.rstudio.com 500 http://cran.rstudio.com/bin/linux/ubuntu trusty/ Packages release v=14.04,o=CRAN,a=trusty,n=trusty,l=CRAN,c= origin cran.rstudio.com 500 http://ftp.uk.debian.org/debian jessie/main i386 Packages release v=8.10,o=Debian,a=oldstable,n=jessie,l=Debian,c=main,b=i386 origin ftp.uk.debian.org 500 http://ftp.uk.debian.org/debian jessie/main amd64 Packages release v=8.10,o=Debian,a=oldstable,n=jessie,l=Debian,c=main,b=amd64 origin ftp.uk.debian.org 500 http://ftp.uk.debian.org/debian stretch-updates/main i386 Packages release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=i386 origin ftp.uk.debian.org 500 http://ftp.uk.debian.org/debian stretch-updates/main amd64 Packages release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=amd64 origin ftp.uk.debian.org 500 http://ftp.uk.debian.org/debian stretch/contrib i386 Packages release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=contrib,b=i386 origin ftp.uk.debian.org 500 http://ftp.uk.debian.org/debian stretch/contrib amd64 Packages release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=contrib,b=amd64 origin ftp.uk.debian.org 500 http://ftp.uk.debian.org/debian stretch/non-free i386 Packages release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=non-free,b=i386 origin ftp.uk.debian.org 500 http://ftp.uk.debian.org/debian stretch/non-free amd64 Packages release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=non-free,b=amd64 origin ftp.uk.debian.org 500 http://ftp.uk.debian.org/debian stretch/main i386 Packages release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=i386 origin ftp.uk.debian.org 500 http://ftp.uk.debian.org/debian stretch/main amd64 Packages release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64 origin ftp.uk.debian.org Pinned packages: |
Debian Buster GUI freezes up with Nvidia graphics Posted: 08 Aug 2021 08:06 AM PDT I recently built a new system, and my graphics are having... problems. The GUI will freeze up frequently and for minutes at a time. I'm running the proprietary drivers, and didn't have this problem with nouveau, but nouveau also didn't recognize my GPU or let me set up my second monitor. Running dmesg | grep NVRM yields [ 3.909853] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 375.66 Mon May 1 15:29:16 PDT 2017 (using threaded interrupts) [ 350.982860] NVRM: GPU at PCI:0000:09:00: GPU-7276b506-d343-19d6-901c-e9b2d011f0b4 [ 350.982868] NVRM: GPU Board Serial Number: [ 350.982873] NVRM: Xid (PCI:0000:09:00): 32, Channel ID 00000020 intr 00040000 [ 355.100050] NVRM: Xid (PCI:0000:09:00): 32, Channel ID 00000028 intr 00040000 [ 409.548334] NVRM: Xid (PCI:0000:09:00): 31, Ch 00000028, engmask 00000101, intr 10000000 [ 413.293746] NVRM: Xid (PCI:0000:09:00): 32, Channel ID 00000028 intr 00040000 [ 4082.537408] NVRM: Xid (PCI:0000:09:00): 32, Channel ID 00000020 intr 00040000 but these Xid errors don't mean a whole lot to me. xrandr gives Screen 0: minimum 8 x 8, current 2806 x 900, maximum 32767 x 32767 DVI-D-0 connected primary 1440x900+0+0 (normal left inverted right x axis y axis) 410mm x 256mm 1440x900 59.89*+ 1280x800 59.81 1280x720 60.00 1152x864 75.00 1024x768 75.03 70.07 60.00 800x600 75.00 72.19 60.32 56.25 640x480 75.00 72.81 59.94 HDMI-0 connected 1366x768+1440+132 (normal left inverted right x axis y axis) 410mm x 230mm 1366x768 59.86*+ 1920x1080 59.94 1280x1024 75.02 60.02 1280x960 60.00 1280x800 59.81 1280x720 60.00 59.94 1152x864 75.00 1024x768 75.03 70.07 60.00 800x600 75.00 72.19 60.32 56.25 720x480 59.94 640x480 75.00 72.81 59.94 59.93 DP-0 disconnected (normal left inverted right x axis y axis) DP-1 disconnected (normal left inverted right x axis y axis) I have a GeForce GTX 1050 Ti. Any ideas on what I might try? |
Fedora 23 black screen after update Posted: 08 Aug 2021 10:05 AM PDT I've installed fedora 23 xfce desktop on my laptop few days ago and it worked like a beauty. After few days i did sudo dnf update . after the update i couldn't change the wallpaper so i restarted my laptop, and after booting up i get two option.. One for the previous kernel and one for the updated one. I tried booth but it keeps taking to a black screen with nothing but a blinking underscore (-). I can hit e to edit the booting thing and add a 3 somewhere to get to the terminal. I tried downgrading xorg-x11-server-Xorg but it didn't fix the issue. Update I tried starting x from the terminal using startx and this is what i got. xauth: file /home........./.serverauth.2093 does not exist. xauth: (stdin):2 unknown command "some random characters" X.Org X Server 1.18.3 Bunch of info about xorg and my machine Parse on line 2 of section InputClass in file /etc/X11/xorg.conf .d/70-synaptics.conf "..." Is not a valid keyword in this section. EE fatal server erro EE no screen found(EE) xinit: giving up xinit: unable to connect to X server: connection refused xinit: server error [Ali@Almoullim ~]$ _ I edit this file in nano /etc/X11/xorg.conf .d/70-synaptics.conf and removed what was inside and now i get. got. xauth: file /home........./.serverauth.2277 does not exist. xauth: (stdin):2 unknown command "some random characters" X.Org X Server 1.18.3 Bunch of info about xorg and my machine Waiting for X server to shut down (II) Server terminated successfully (0). Closing log file. [Ali@Almoullim ~]$ _ refer this is the log: Update 2 I removed xorg conf.d directory and started X from the previous kernel and now i can get to the login screen but i cant use either my keyboard nor my mouse. I believe there is something about that in the log file, see this part: I'm guessing it says that it cant find the appropriate drivers for keyboard, mouse, wifi, ...etc So i installed xorg-x11-drv-evdev && xorg-x11-drv-synaptics to enable the keyboard, mouse, and touchpad. But some errors is still happening its taking startx about 1-2 min to start!! Update 3 I just installed fedora on my second laptop but this time fedora 24. And surprisingly it took 3 min to get to i3!! Guess the issue is with fedora then... I don't feel like trying to fix this anymore and i don't like using old version of fedora... I'm going back to Arch! PS: i have a Lenovo Z500 i7 with 8gb ram and nvidia geforce 740m (its just not possible that my laptop is too weak to handle fedora) |
Drag-and-drop without the drag Posted: 08 Aug 2021 08:55 AM PDT I sometimes need to drag-and-drop files onto an application. (Example — but my question here is not installing Chrome userscripts.) One solution is to use Dragbox, which opens a window from which I can drag a file specified on the command line. It's nice but I'd like to reduce the necessary mouse interaction. With Dragbox, I have to: arrange for both Dragbox and the drop zone to be visible; move the mouse cursor to the location where Dragbox displays the file; press the left mouse button; move the mouse cursor to the drop zone; release the cursor. I'd like an interface that works more like copy-paste: run a command like dragbox --more-magic foo , then click on the drop zone. Or run the command then focus the drop zone and press a key. Is there a program to do that? Can it even be done with Freedesktop drag-and-drop? |
How to to resize an ext4 partition from the command line? Posted: 08 Aug 2021 07:39 AM PDT What's the easiest way to resize an ext4 partition (or any type partition depending on the method) from the command line (potentially with the fewest commands, but also the easiest to understand)? Using a tool like Gparted is obviously easy in a GUI, but what about in the command line? I guess text-based GUIs can count for the answer too since it's technically still in the command line. It just needs to be easy. By partition I mean a simple partition on a single disk of a personal computer (e.g. on a laptop). For example, I want to resize /dev/sda4 . There's no RAIDs, there's not more than one disk drive, there's not anything complicated here. Just a simple partition on a single disk (/dev/sdaX on /dev/sda). |
How to shutdown Linux at specific datetime from terminal? Posted: 08 Aug 2021 08:13 AM PDT It seems I can shutdown using sudo shutdown by specifying a time or minutes. Is there a way to specify datetime for shutdown? |
No comments:
Post a Comment