You are not logged in.

#1 2024-10-29 00:59:15

dude
Member
From: Earth
Registered: 2022-12-09
Posts: 19

Found a couple issues with the default autostart config in Boron

1.

## Turn on/off system beep.
xset b off

is now governed by

greeter-setup-script=xset b off

in

/etc/lightdm/lightdm.conf

(see https://unix.stackexchange.com/question … tdm#395736)


2.

## Add keyboard mapping.
xmodmap -e "keysym Insert = Multi_key"

## Disable CapsLock
setxkbmap -option ctrl:nocaps
# alternative: use as compose key
#setxkbmap -option compose:caps

doesn't work because

xmodmap settings are reset by setxkbmap, which not only alters the alphanumeric keys to the values given in the map, but also resets all other keys to the startup default

(see https://wiki.archlinux.org/title/Xmodmap)

Solution: put xmodmap commands *after* setxkbmap commands.


Cheers

Last edited by dude (2024-10-29 01:02:19)

Offline

#2 2024-10-29 06:25:06

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,606
Website

Re: Found a couple issues with the default autostart config in Boron

Thanks for the feedback @dude!

dude wrote:

1.

## Turn on/off system beep.
xset b off

is now governed by

greeter-setup-script=xset b off

in

/etc/lightdm/lightdm.conf

(see https://unix.stackexchange.com/question … tdm#395736)

I hear no system beep right now (eg with a backspace in the login password window) with 'xset b off' in ~/.config/bunsen/autostart. Does it affect you? ( That stackexchange reference is from 2017. )

2.

## Add keyboard mapping.
xmodmap -e "keysym Insert = Multi_key"

## Disable CapsLock
setxkbmap -option ctrl:nocaps
# alternative: use as compose key
#setxkbmap -option compose:caps

doesn't work because

xmodmap settings are reset by setxkbmap, which not only alters the alphanumeric keys to the values given in the map, but also resets all other keys to the startup default

(see https://wiki.archlinux.org/title/Xmodmap)
Solution: put xmodmap commands *after* setxkbmap commands.

This will be done, many thanks!


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#3 2024-10-29 07:16:04

dude
Member
From: Earth
Registered: 2022-12-09
Posts: 19

Re: Found a couple issues with the default autostart config in Boron

johnraff wrote:

I hear no system beep right now (eg with a backspace in the login password window) with 'xset b off' in ~/.config/bunsen/autostart. Does it affect you? ( That stackexchange reference is from 2017. )

Yeah, apparently it's not a new discovery but it was a new development for me. Seems like the kind of thing that would irritate a lot of people. I wonder why it affects me in particular. Perhaps because I did a fresh install? Did you upgrade? Maybe it carried over the previous config?

johnraff wrote:

Thanks for the feedback @dude!

I'm happy to help :-)

Offline

#4 2024-10-29 07:43:35

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,606
Website

Re: Found a couple issues with the default autostart config in Boron

Before making the change in where to turn off the beep I need to be sure it's an improvement for most people.
To be honest, I've never heard the beep in any of the fresh installs, both on hardware and in VMs, that I've done. You're the first person to mention it, ever.

When do you hear it? I'll try to reproduce the issue before trying to fix it.

If ~/.config/bunsen/autostart works, it's preferable because it would continue to work with other display managers than LightDM.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#5 2024-10-29 08:07:06

dude
Member
From: Earth
Registered: 2022-12-09
Posts: 19

Re: Found a couple issues with the default autostart config in Boron

johnraff wrote:

I've never heard the beep in any of the fresh installs, both on hardware and in VMs, that I've done. You're the first person to mention it, ever.

When do you hear it?

Backspace in the login prompt does it, like you said. It was one of the first things I noticed. Could another setting be screwing with it? Could it be firmware or hardware related?

Offline

#6 2024-10-29 09:20:25

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,606
Website

Re: Found a couple issues with the default autostart config in Boron

And when you moved the setting to /etc/lightdm/lightdm.conf it went away?

Another reason I'm reluctant to change this is that it occupies the greeter-setup-script slot in lightdm's config that someone might want to use for something more substantial.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#7 2024-10-29 11:00:33

dude
Member
From: Earth
Registered: 2022-12-09
Posts: 19

Re: Found a couple issues with the default autostart config in Boron

Correct. It’s reproducible on my end but there’s no reason to change anything if I’m the only one with the issue.

Offline

#8 2024-10-30 03:01:12

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,606
Website

Re: Found a couple issues with the default autostart config in Boron

Anyway let's keep an eye on this one. I've put it on our to-do list for Carbon so we can revisit it before release.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#9 2024-10-31 04:46:05

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,606
Website

Re: Found a couple issues with the default autostart config in Boron

I just did a little bit of web-searching and it looks as if disabling the system beep can be a surprisingly complicated task, eg:
https://www.baeldung.com/linux/disable-beep-sound

One thing to check - is the beep coming through the sound system via pulse, alsa or whatever to a pair of audio speakers or headphones, or is it direct from a built-in speaker on the motherboard?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB