The officially official Devuan Forum!

You are not logged in.

#1 Hardware & System Configuration » Remounting SD-card fails after suspend on ThinkPad W500 with Devuan 4 » 2023-12-02 12:27:57

lhp
Replies: 0

If I have an SD-card mounted using automounting at /media/<user>/<devicename> and suspend the machine, it is unmounted on suspend it seems. However the unmount appears to be incomplete or unclean in some way, as any attempt to mount it after resuming leads to an error:

sysfs: cannot create duplicate filename '/fs/ext4/mmcblk0p1'
(call trace omitted)
kobject_add_internal failed for mmcblk0p1 with -EEXIST, don't try to register things with the same name in the same directory.
EXT4-fs (mmcblk0p1): mount failed

What I believe is happening is that when clicking mount in Thunar, the mount attempt fails because the sysfs entry "directory" /sys/fs/ext4/mmcblk0p1 already exists.

If I try to mount from the command line it fails in the same way. (File exists.)
Unmounting from the command line fails, as the device obviously isn't mounted anywhere.

How do I get /sys/fs/ext4 in sync with what is actually mounted?
Is there a way to make suspend unmount the card correctly, or not unmount it at all?

#2 Re: Hardware & System Configuration » [SOLVED] Odd error at boot Setting up keyboard layout...too many (144) entries » 2023-05-16 07:22:30

lhp

Wow. Sometimes doing silly things pays off. Like wanting to type LWinKey-"a" and get an 𝐚.
Now, mathbold lowercase "a" ("𝐚") is code point U+1D41A. It seems loadkeys (from kbd-utils project) does not like that. The Devuan kbd is version 2.3.0-3.

lhp@xanadu:~/sandbox/kbd$ apt list --installed|grep kbd
kbd/stable,now 2.3.0-3 amd64 [installed]

I checked out kbd from https://github.com/legionus/kbd and compiled it.
The Devuan loadkeys gives this message:
lhp@xanadu:~/sandbox/kbd$ sudo loadkeys -v -C /dev/tty5 ~/cached_UTF-8_del.kmap
Loading /home/lhp/cached_UTF-8_del.kmap
too many (144) entries on one line

The presumably most recent version I built from source gives:
lhp@xanadu:~/sandbox/kbd$ sudo src/loadkeys -v -C /dev/tty5 ~/cached_UTF-8_del.kmap
Loading /home/lhp/cached_UTF-8_del.kmap
unicode keysym out of range: U+1d42a
syntax error, unexpected ERROR, expecting NUMBER or LITERAL or UNUMBER

So it was my silly tinkering, after all, that messed things up. (I'd argue that it should be possible to type any Unicode code point, but that's not for me to decide. I guess I'll write a suggestion for the kbd project though.)

#3 Re: Forum Feedback » [SOLVED] Search cooldown time » 2023-05-16 05:42:18

lhp
Head_on_a_Stick wrote:

Any chance of reducing the 60 second timeout for new posts? It might just be my sporadic hypomania but I butt up against this limitation more than I would like and I find the wait quite excruciating sometimes. I understand if it won't be possible though, it does help prevent spam.

Are you referring to being logged out in the time it takes you to type a post (or a reply), click Submit, only to get "you have no permission", because you've been logged out in the meantime? I have had this twice now. Fortunately I had the forum open in two tabs, and a login in the other tab made it possible to do a reload on the error page, and resending the request. Otherwise, a lot of typing would have been lost. You might be able to use this workaround.

I think it would be nice if I could _remain_ logged in until I choose not to be. Or alternatively, if submitting a post or reply, I would get an error page offering me to provide login credentials and try submitting the post or reply again, so the text is not lost.

#4 Re: Hardware & System Configuration » [SOLVED] Odd error at boot Setting up keyboard layout...too many (144) entries » 2023-05-16 05:23:20

lhp

Ah, it's so 𝐧𝐢𝐜𝐞 to have my mathbold Unicode letters back. Turned out there was a typo in my symbols file. Mea culpa.

However, the system has regenerated the /etc/console-setup/cached_* files, and the new cached_UTF-8_del.kmap.gz still causes loadkeys to hiccup with "too many (144) entries on one line", and switching from X to a  console with Ctrl-alt-F5 I can see that the console is not using Danish keyboard layout. I believe it used to. Just checked on other machine, and sure enough it does have the Danish keyboard set for the Ctrl-Alt-F5 console on tty5.

So now I would like to look at how the cached_UTF-8_del.kmap.gz file is generated, and why TF it gets to be malformed. (It might still be related to my tinkering, of course.) If anyone can shed some more light on this, I'd be thankful, meanwhile I guess I'll cook a little Perl script to find the offending line with too many entries.

#5 Re: Hardware & System Configuration » [SOLVED] Odd error at boot Setting up keyboard layout...too many (144) entries » 2023-05-15 14:37:07

lhp

Oh, a little general information, so people don't need to ask :"what version of...?"
uname -a ; cat /etc/os-release /etc/debian_version
Linux xanadu 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux
PRETTY_NAME="Devuan GNU/Linux 4 (chimaera)"
NAME="Devuan GNU/Linux"
VERSION_ID="4"
VERSION="4 (chimaera)"
VERSION_CODENAME="chimaera"
ID=devuan
ID_LIKE=debian
HOME_URL="https://www.devuan.org/"
SUPPORT_URL="https://devuan.org/os/community"
BUG_REPORT_URL="https://bugs.devuan.org/"
11.1

#6 Hardware & System Configuration » [SOLVED] Odd error at boot Setting up keyboard layout...too many (144) entries » 2023-05-15 14:33:00

lhp
Replies: 3

I have been tinkering... yes, "don't do that", I know. Anyway, I had changed four files in /usr/share/X11/xkb/: symbols/dk and rules/{base,evdev}.xml. It was/is an experiment to add mathbold Unicode letters to the keys using an extra keyboard variant, and use the Windows key to activate the variant when held down. Worked fine too.

However, after a reboot, both the console and XFCE keyboard seem stuck as US even if the Keyboard Settings show DA (Danish). So now I am debugging this problem. While doing so, I noticed an error message at boot time. From /var/log/boot:
Setting up keyboard layout...too many (144) entries on one line

However this seems to have happened on previous reboots as well, so it is probably unrelated to my tinkering. It may be worth looking into anyway, perhaps.
I don't know why setting up the console keyboard need to be so convoluted, but anyway, AFAICT, it does the following:
/etc/init.d/keyboard-setup # is run by init, obviously. It then runs (if given start or similar arguments)
/lib/console-setup/keyboard-setup.sh # which either checks if a cached command exists
/etc/console-setup/cached_setup_keyboard.sh # which it then runs, otherwise it does setupcon -k

The /etc/console-setup/cached_setup_keyboard.sh script checks if /run/console-setup/keymap_loaded exists, deletes it and exits if it does, or if it doesn't it runs kbd_mode '-u' /dev/ttyn on tty1 to tty6. After that it loads a cached keyboard map with the command:
loadkeys '/etc/console-setup/cached_UTF-8_del.kmap.gz' > '/dev/null'

This file looks very strange, with loads of repetition, which I find hard to believe can be quite right.

Looking at a different machine (eldo), which has roughly the same config, but hasn't been tinkered, I just did a dumpkeys and  compared it with a dump on this machine (xan).
$ diff xan_kmapdumped eldo_kmapdumped
3,4c3,4
< number of keymaps in actual use:                 7
< of which 0 dynamically allocated
---
> number of keymaps in actual use:                 128
> of which 121 dynamically allocated

something isn't right, I guess. Next, I'll be comparing the cached files on  both machines, and see what's going on.

Now this is what I don't get: I can't find any documentation that says loadkeys will accept a gzipped keymap file, and looking at the source files does not seem to support this either. At this point I don't know what's going on anymore; my investigation in the main problem (with my tinkering) will probably take priority. But if anyone can point to a good explanation of how all this keyboard initialisation at boot works, it would be appreciated. I know this is most likely unrelated to the problem I caused by my tinkering, which I am aware that I have to debug in the context of X11/XFCE4 instead. However, the error message caught my eye, and made me curious.
Oh, and if you think I should be punished for my silly tinkering, I can assure you that typing this with a Danish physical keyboard and a US layout was not pleasant. ;-)

#7 Re: Other Issues » Is there a good way to install Inkscape 1.2.2? » 2023-03-05 08:16:18

lhp
ralph.ronnquist wrote:

No I meant to mount an overlay of your current OS, and then install in the overlay.

In that way your lower / installation is unaffected by whatever the inscape installation from daedalus pulls in.

EDIT: change "upper" to "lower" (as it should be)

Oh, I get it now, sorry, yes that would indeed work, and be a bit less effort. This looks like a nice hack for future use.

Meanwhile, I was first trying pdfarrange - which kind of does work, except it is rather crude, and seems to only allow splitting a page vertically in the middle.
Then I saved the document as EPS and tried the original poster (which I guess pdfposter is supposed to imitate or at least is inspired from, but poster only works with EPS). This actually worked perfectly.

poster -mA4 -s1  calypso_path.eps >poster-calypso.eps

yields a file of A4 pages with nice margins and cut marks, just what I needed. I suspect that must have been the same tool I used decades ago.  Now I just need to uninstall pdfposter, PosteRazor and pdfarrange, and remember to never install them again...

#8 Re: Other Issues » Is there a good way to install Inkscape 1.2.2? » 2023-03-05 03:26:53

lhp
ralph.ronnquist wrote:

1.2.2 seems available on daedalus and ceres

Well, that doesn't sound like a particular good way to do it, installing a whole unstable OS on another machine or a VM, and then also doing extra tricks to prevent other problems. Then I could just as well install a VM with NetBSD, as it seems pkgsrc has Inkscape 1.2.2 already. I was hoping for an easier solution, for something that should really not be a problem, or at worst a trivial one. It is a bit like if I said the sprinkler on my car isn't working, and the proposed solution was to replace the gas engine with a diesel and repaint the car orange.

I vaguely remember now, having had to solve this problem before, more than a decade ago; I think the solution was some package like pdfposter or PosteRazor, but not one of them. Possibly it was poster and I did the exercise in PostScript and not PDF. I'll give that a try for now, but better suggestions will be warmly welcomed.

#9 Other Issues » Is there a good way to install Inkscape 1.2.2? » 2023-03-04 22:10:34

lhp
Replies: 6

I am a new Devuan user (but could probably call myself a VUA), running Chimaera on my machines for some months now with great satisfaction. But I need the multi-page functionality added in Inkscape 1.2 (released May 2022.) My installed version is 1.0.2-4. After adding backports to /etc/apt/sources.list and looking with apt -t chimaera-backports search inkscape|less it seems backports only has inkscape/stable-backports 1.1.2-3~bpo11+1.

How do I install 1.2.2 on my system?

#10 Re: Devuan » Setting up User accounts - needs improvement » 2023-01-04 08:28:41

lhp
ljlinde wrote:

The only hard part is to setup users.   We maintain all users with a unique USID over all systems.   So if you need anything just set down to a box and login.
and you have acess to your account and the server.

SL 6.5 uses a dialog that allows you assign a user name, USID, and group.   Shamelessly copy it and add it Devuan

I'm a very new Devuan user, but I guess I could claim being a VUA, having been root on 7 different Unix variants (not counting different Linux distributions) since the early 1990s. Isn't this just a matter of writing a tiny shell/awk/Perl script and/or perhaps setting up a little LDAP server and doing some /etc/nsswitch.conf configuration? Or maybe just good old NIS/YP? You could even distribute /etc/passwd (shadow, group) in a pinch?

Board footer

Forum Software