The officially official Devuan Forum!

You are not logged in.

#1 Re: Desktop and Multimedia » [SOLVED] Switching VT crashes Xorg after upgrade to Daedalus » 2023-10-09 08:55:19

I think I just got the update in the main repositories!

EDIT: works great for me now! Many many thanks!

#2 Re: Desktop and Multimedia » [SOLVED] Switching VT crashes Xorg after upgrade to Daedalus » 2023-09-25 10:27:09

So the build-in seatd works only for users that have both input and graphics access? None of my regular users have input group membership so I guess this built-in doesn't come into play here. Just to confirm that I understand correctly, back i Chimaera my X was using logind for input mediation and that let me startx under different users at the same time (I was not passing any arguments to startx either). Now there seem to be three problems in Daedalus:

  • startx(logind) now crashes when switching to another VT, so I cannot test what would happen if a second startx(logind) session was started. I assume it would work fine like in Chimaera.

  • startx(logind) fails with "Device or resource busy" if there is a startx(seatd) session already running under another user.

  • startx(seatd) fails with "Broken pipe" if there is a startx(seatd) session already running under another user.

#3 Re: Desktop and Multimedia » [SOLVED] Switching VT crashes Xorg after upgrade to Daedalus » 2023-09-25 07:40:12

Thanks for the confirmation @fsmithred.

Does any of these changes affect the ability of one user to keylog the other user when both users run X servers? Without a mediation process like seatd/logind or with any of them.

And while we're at it, since both users have video membership, does that mean that even when switching away from their X, a process under such a user can capture the screen of the other user?

@ralph.ronnquist I tried the command you posted but it unfortunately didn't work. The second user isn't a member of input btw. First it tried with seatd and failed with "Could not poll connection: Broken pipe" then it tried with logind and it failed with "Could not take device: Device or resource busy"

#4 Re: Other Issues » Lazarus package broken? » 2023-08-25 13:24:47

Hello Ralph. I've done all three during the upgrade to Daedalus and I've done the first two multiple times after it to fetch updates to my installed packages. I tried again right now and I did not see any packages that I have not upgraded (and it did fetch the repos again).

Digging a bit deeper it looks like it fails because
lcl-2.2 is not installable because
lcl-gtk2-2.2 is not installable because
fp-units-gtk2 is an unmet dependency because
libatk1.0-dev depends on libatk1.0-0 (= 2.46.0-5) but 2.48.3-1~bpo12+1 is to be installed and, additionally, libatk1.0-dev depends on gir1.2-atk-1.0 (= 2.46.0-5) but 2.48.3-1~bpo12+1 is to be installed.

So I guess they need an exact version but I have a newer one already installed from stable-backports because of gimp-gap.

But gimp-gap needs any libatk1.0-dev version above or equal to 1.12.4, so why isn't apt simply downgrading my libatk1.0-0 version to fix the dependencies?

As for the gir1.2-atk-1.0 dependency it's because lutris depends on gir1.2-gtk-3.0 which in turn depends on gir1.2-atk-1.0 (>= 2.35.1) which once more means that apt should be able to downgrade from the backported 2.48.3 to 2.46.0 and lutris will be happy too.

I guess apt isn't that smart and I need to manually fix the versions of these two packages? (gir1.2-atk-1.0 and libatk1.0-0) Is there anything I need to remember if I fix their versions? For example, how do I know that I'm not missing out on security updates on them?

#5 Other Issues » Lazarus package broken? » 2023-08-25 12:28:53

Tritonio
Replies: 6

I am trying to install lazarus and apt gives me:

 lazarus-2.2 : Depends: lcl-2.2 (>= 2.2.6+dfsg2-2) but it is not installable
               Recommends: fpc

Synaptic also shows red boxes if I try to tick it.

Have I broken my repositories? I'm on Daedalus, recently upgraded from Chimaera.

Here's my sources.list:

deb http://deb.devuan.org/merged daedalus main non-free contrib
deb-src http://deb.devuan.org/merged daedalus main non-free contrib

deb http://pkgmaster.devuan.org/merged daedalus-security main contrib non-free
deb-src http://pkgmaster.devuan.org/merged daedalus-security main contrib non-free
deb http://deb.devuan.org/merged daedalus-updates main contrib non-free
deb-src http://deb.devuan.org/merged daedalus-updates main contrib non-free

deb http://deb.devuan.org/merged daedalus-backports main contrib non-free
deb-src http://deb.devuan.org/merged daedalus-backports main contrib non-free

#6 Desktop and Multimedia » [SOLVED] Switching VT crashes Xorg after upgrade to Daedalus » 2023-08-16 15:12:20

Tritonio
Replies: 12

Hi all. I had a really nice setup on Chimaera where I had one user for gaming and one for everything else. I had stopped using slim because I wanted to avoid having xorg running as root so instead my computer would require me to login on a virtual terminal (Ctrl+Alt+F1) and then I would run startx to start XFCE. This worked perfectly. Both users were able to run separate Xorgs on different virtual terminals and I could switch between them by Ctrl+Alt+F* at will.

After upgrading to Daedalus if I try to switch away from the first Xorg, even if I'm just switching to a plain virtual terminal and not another xorg, even if there's no other Xorg running, the first Xorg crashes and when I switch back to it (Ctrl+Alt+F1) I'm already dropped back at the console.

I found these in the xorg crash log in my user directory:

[  3132.705] (II) seatd_libseat try close /dev/input/event3 (27:27)
[  3132.706] (II) event3  - Video Bus: device removed
[  3132.744] (II) seatd_libseat try close /dev/input/event6 (30:30)
[  3132.745] (II) event6  - Power Button: device removed
[  3132.785] (II) seatd_libseat try close /dev/input/event5 (31:31)
[  3132.785] (II) event5  - Logitech Wireless Mouse: device removed
[  3132.844] (II) seatd_libseat try close /dev/input/event11 (32:32)
[  3132.844] (II) event11 - Integrated_Webcam_FHD: Integrat: device removed
[  3132.888] (II) seatd_libseat try close /dev/input/event2 (33:33)
[  3132.928] (II) seatd_libseat try close /dev/input/event9 (34:34)
[  3132.928] (II) event9  - (redacted by me) Touchpad: device removed
[  3132.992] (II) seatd_libseat try close /dev/input/event1 (35:35)
[  3132.992] (II) event1  - Dell WMI hotkeys: device removed
[  3133.036] (II) seatd_libseat try close /dev/input/event0 (36:36)
[  3133.037] (II) event0  - AT Translated Set 2 keyboard: device removed
[  3133.072] (II) seatd_libseat try close /dev/input/event4 (37:37)
[  3133.128] (II) seatd_libseat try close /dev/input/event8 (38:38)
[  3133.128] (II) event8  - DELL Wireless hotkeys: device removed
[  3133.176] (II) seatd_libseat try close /dev/input/event14 (39:39)
[  3133.177] (II) event14 - BRLTTY 6.6 Linux Screen Driver Keyboard: device removed
[  3133.204] (II) AIGLX: Suspending AIGLX clients for VT switch
[  3134.008] (II) AIGLX: Resuming AIGLX clients after VT switch
[  3134.008] (EE) AMDGPU(0): failed to set mode: Permission denied
[  3134.008] (WW) AMDGPU(0): Failed to set mode on CRTC 0
[  3134.008] (EE) AMDGPU(0): Failed to enable any CRTC
[  3134.008] (EE) 
Fatal server error:
[  3134.008] (EE) EnterVT failed for screen 0

I saw in the release notes for Daedalus that there some changes around running xorg as non-root but I don't understand how they apply to me since I do not use any login manager like elogind, nor do I want to start using one if that's possible. But I do have elogind installed because it's a dependency of digiKam. I'd rather just use startx after having logged in on the console. My user is a member of the video group, I checked again. I'm not sure why I get this: "AMDGPU(0): failed to set mode: Permission denied"

Any ideas? Am I unknowingly using a login manager?

Thank you!

EDIT: I tried installing seatd and now I can switch out of my active xorg and into a VT but it will fail to start a second Xorg under a different user account. I removed it again for now since I think just solving the permission denied issue will make everything as it was before the upgrade.

#7 Re: ARM Builds » Installer images for armel, armhf and ppc64 need testing » 2023-03-17 10:35:13

The https://arm-files.devuan.org link seems to be taking me to the regular non-ARM downloads now. It was working a week or two ago.

#8 Re: Desktop and Multimedia » [SOLVED] Atril print preview does not work » 2022-12-15 00:17:11

I still use Atril, it's just that the print preview now opens, and it opens in evince, and before installing evince Atril was complaining (in the stdout) that evince was not found.

Could it be that print previews are for example in postscript and for some reason postscript is associated with evince even when evince is not installed? But I don't see how this could be the case. Where are file associations stored in XFCE? I think the suggested ones come from .desktop files but where is the currently active association stored? The one that xdg-open would use to open the file (if xdg-open is even used by XFCE).

#9 Re: Desktop and Multimedia » [SOLVED] Atril print preview does not work » 2022-12-13 17:22:22

I suppose evince should be marked as an suggested dependency on Atril and that would solve the issue, correct? But in terms of this thread, is there anything more to do to resolve it?

You error seems somewhat different. I also got the avahi errors since I've removed avahi but I got a message clearly saying evince was not found, which I don't see in your log.

#10 Desktop and Multimedia » [SOLVED] Atril print preview does not work » 2022-12-12 14:57:57

Tritonio
Replies: 8

What the title says. Version 1.24.0 on Chimaera. Print preview in Atril shows a progress bar quickly and then nothing, it just goes back to showing the document as is. You can fix this by installing evince. I thought I'd post in case anyone encounters this in the future.

#11 Re: Other Issues » [SOLVED] Locate cannot search for files with brackets? » 2022-11-03 13:31:17

I did it with Lua. I use this script in my custom Thunar action called "Locate elsewhere" and it works perfectly now

#!/usr/bin/lua
print("Other files with the same filename:")
for _,argument in ipairs(arg) do
        argument=string.gsub(argument,"%[","\\[")
        print('locate -b "'..argument..'"')
        os.execute('locate -b "'..argument..'"')
end
print("Done.")
io.read()

#12 Re: Other Issues » [SOLVED] Locate cannot search for files with brackets? » 2022-11-03 12:56:07

Thank you aluma! That's the solution to my problem. I'll need to find a way to do it programmaticaly with bash though since I'm just passing filenames to this bash script that internally calls locate with them.

andyp67 indeed find is much more predictable with the exception of the -exec argument which took me some time to get used to.

#13 Re: Other Issues » I think installed apt is sandboxed. » 2022-10-27 09:03:18

unwell wrote:
W: Download is performed unsandboxed as root as file '/root/.synaptic/tmp//tmp_sh' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

I've been randomly getting exactly the same message inside the console log in synaptic when installing packages. I don't know when it happens or when it doesn't. I'm starting synaptic from the usual launcher in the menu. When it's shows up in the expanded console then it will also throw this actual error dialog after closing the installation dialog:

fK5bHst.png

I'm using XFCE on Chimaera.

#14 Other Issues » [SOLVED] Locate cannot search for files with brackets? » 2022-10-14 22:27:46

Tritonio
Replies: 5

This is driving me crazy. I am making a bash script that is given one or more files and will search with location for other locations that the same filename shows up. So I need to make this work given the whole filename. I intend to use this script as a custom Thunar action and it actually works fine for files that don't have square brackets in their name. But I have a file named:

5481[2].jpg (image).html

I want to use locate to search in what other locations it exists. Specifically

locate -b "(image).html"

will show the file, so the file is in my mlocate db. But trying to search with

locate -b "5481[2].jpg (image).html" 

returns zero results!

Even leaving the bash script aside for a while and simply opening a terminal and typing "locate" then the start of the filename and tab completing it, which escapes the filename with backslashes, still returns zero results while it works for any other file without square brackets.

What gives? What's so special about these square brackets that locate refuses to use them in a search expression? The same issue applies to all my files with square brackets in their filenames.

My only other option would be to find a way to turn a filename into a regex and then user the regex mode of locate. Is there a command that I can filter a filename through to turn it into a proper regex?

Thank you.

#15 Re: Desktop and Multimedia » Accessing fora on the web » 2022-09-19 19:40:16

Maybe try changing your user agent for all domains instead, confirm it actually changed with some site that shows you your user agent string, and then retry on discourse.

If it's still not working it's possible that they are testing for some JS feature support and not the agent string.

#16 Desktop and Multimedia » Mousepad does not open files over gvfs » 2022-09-11 16:36:32

Tritonio
Replies: 0

I'm assuming gvfs is what Thunar uses when I go to a url like sftp://user@123.123.123.123/some/path. Thunar seems able to browse sftp locations with gvfs, gvfs-backends, gvfs-common, gvfs-daemons and gvfs-libs installed but double clicking files to open with Mousepad will simply open an empty document called Untitled 1 as if I just opened the application without any arguments. Trying to open files with Mousepad from the terminal like so:

mousepad "sftp://user@123.123.123.123/some/path/filename.txt"

will give:

Invalid URI: "sftp://user@123.123.123.123/some/path/filename.txt"

I saw somewhere else on the internet that I should install gvfs-fuse as well but it didn't seem to make any difference.

Any ideas please? :-/

#17 Re: Installation » [SOLVED] Anacron symlinked to "true", again. » 2022-09-08 23:04:58

Oh right, my bad. Thanks! I wrote the image to my rescue USB already. BTW the torrent doesn't seem to have 4.0.1. Although there's a 4.1 (pool1) version which I don't know what it is. :-) But I'm getting off-topic.

I haven't tested the new installer yet, should I mark the topic SOLVED or wait for whenever I test it?

EDIT: I'll just mark it as SOLVED since we have workaround that I know work anyhow.

#18 Re: Installation » [SOLVED] Anacron symlinked to "true", again. » 2022-09-08 19:26:01

fsmithred wrote:

New live isos with new repo key and new refractainstaller with anacron fix are uploaded.

Thanks! But FYI you have one more expired key to renew. ;-D

gpg: assuming signed data in 'SHA256SUMS.txt'
gpg: Signature made Wed Sep  7 18:11:12 2022 CEST
gpg:                using RSA key 67F5013216271E85C251E480A73823D3094C5620
gpg: Good signature from "fsmithred (aka fsr) <fsmithred@gmail.com>" [expired]
gpg: Note: This key has expired!

#19 Re: Installation » [SOLVED] Anacron symlinked to "true", again. » 2022-09-04 22:22:53

Now that the repo key needs fixing in the ISOs, maybe it's worth including a fix for this in the new Live ISOs. :-)

#20 Re: Desktop and Multimedia » The abstract and network socket for X » 2022-08-30 19:58:54

Thanks for the answers! I already switched to startx and yeap like you said X's running under my user account now.

Is that a joke? IMO Wayland is simpler than X.

:-D I haven't checked Wayland, it may be way simpler! I'm just saying that X doesn't seem hard to wrap my head around.

I'll check it out soon! Worst case I break my desktop env and I use timeshift to rollback. :-)

#21 Re: Desktop and Multimedia » The abstract and network socket for X » 2022-08-30 18:30:50

Thank you for the info about slim and Wayland.

When you say "hand over to the normal user" what do you mean? Who is the normal user? Do you mean that GDM somehow start a new X under the user that just logged in? (I'm assuming the X for the login screen of GDB runs as root, right?)

I can do startx after logging in on a console, that's fine by me. Do I gain something by having a graphical login screen? (I'm also curious, does startx do the cookie generation (.Xauthority) when it's run?

I need to research Wayland. I've known it by name and that it's a replacement for X but I know nothing beyond that. X seems like a relatively simple program to understand how it works in terms of who can do what, notwithstanding my ignorance on where the socket even is in the first post above. If I understand it correctly, If X is started (by slim in my case) and given the cookie of a user, no other user will be able to connect to that X anyhow. So what  extra does Wayland offer? Is the benefits of Wayland usable only when I have multiple graphical users logged into one X at the same time? And I guess with slim I can't have multiple graphically logged in users.

I've always wanted to try a tiling manager but I don't know if it will be worth it on a laptop screen. I'll check sway out. I was thinking of trying ratpoison at some point too.

#22 Re: Documentation » [HowTo] Install latest youtube-dl on DEVUAN 4 » 2022-08-29 15:25:58

I used youtube-dl just fine yesterday. In general it needs me to keep a tab open with the video otherwise google eventually figures out I'm downloading it and cuts me off. Although this only affects downloading playlists, if it's a single video it never cuts in the middle.

alexkemp when I try the command you run to update youtube-dl I get:

youtube-dl: error: youtube-dl's self-update mechanism is disabled on Debian.

Did you get your version from elsewhere?

#23 Desktop and Multimedia » The abstract and network socket for X » 2022-08-29 15:20:57

Tritonio
Replies: 4

I've been disabling them for years with and I don't think I've encountered a problem. I'm disabling them assuming that by doing so, unless another user can open the Unix socket they won't be able to interact with my X to steal keystrokes etc.

Here's what I have right now:

/etc$ grep -R nolisten 2>/dev/null 
slim.conf:xserver_arguments   -nolisten tcp -nolisten local
X11/xinit/xserverrc:exec /usr/bin/X -nolisten tcp -nolisten local "$@"

But why are these sockets enabled by default? Are my assumptions wrong? I think I've read that the abstract socket is used by Snap but is that all? Am I actually hardening my system when I disable them?

EDIT: I did a bit more research and I realized that the X unix socket is /tmp/.X11-unix/X0 which is world writable. I'm trying to figure out how to change this, I don't have other users that need X so I think it'll be ok to limit it to just my user (and root).

EDIT2: I now saw how the MIT-cookies work but I'm still trying ot figure out the exact lifecycle of X. How does slim show up in my screen if I still haven't logged in but I then end up having the cookie to connect to X? In any case my initial question still stands, why keep the abstract and network socket around?

#24 Hardware & System Configuration » [SOLVED] Dell Vostro 3525 backlight does not work » 2022-08-26 09:18:18

Tritonio
Replies: 1

Hello. I already solved this issue but it took me too long so I thought I'd document the solution here if anyone else has the same problem.

Hardware: https://ubuntu.com/certified/202111-29708/20.04%20LTS
Renoir graphics with Ryzen 5 5625U.

Symptoms:

  • /sys/class/backlight/acpi_video0/brightness exists and contains values and can be changed but will not change the actual brightness on the laptop panel.

  • Whenever a value is written to the above file, the Display Settings pop up. Yes, the actual xfce4-display-settings program is started. I'm assuming that it detects a display change. It even pops up if you use the Fn buttons to change the brightness if you have given control of the brightness to xfce4-power-manager (which you should).

  • The Fn keys will emit "dell_wmi: Invalid length of WMI event" but this is a red herring, ignore this sort of warning.

  • Your laptop's panel will only go up to 70Hz or 77Hz.

I tried many of the solutions that float around the web and only a combination of two of them plus something that I found myself in synaptic worked. Specifically:

(As root)

  • Enable backports and install the kernel 5.18.0-0.bpo.1-amd64 (headers and image)

  • Edit /etc/default/grub and change the CMDLINE to: GRUB_CMDLINE_LINUX_DEFAULT="quiet amdgpu.backlight=0"

  • Run update-grub.

  • Install firmware-amd-graphics

Reboot and acpi_video0 will go away and instead you'll have amdgpu_bl0 which actually works with Fn keys and by writting values to the /sys/class/backlight/amdgpu_bl0/brightness file. You'll also have 120Hz refresh rate.

I had tried individually the three important components of the solution and they didn't seem to work.

The only other issue that I encountered with this laptop was that the external mic doesn't work with ALSA at all, and the internal mic works but has no volume control. Pulseaudio somehow makes them work, which makes me think that there is a way to make them work with ALSA too, since PA uses ALSA if I am not mistaken. I may try to solve that in the future since I dislike PAs overhead (CPU and latency).

I hope this helps someone.

#25 Re: Installation » [SOLVED] Anacron symlinked to "true", again. » 2022-07-08 16:11:09

Good news. Will there be an new Live ISO that fixes the installer?

Board footer

Forum Software