Beep doesn't work in LXLE 16.04

Deploying to Linux? Get penguinated here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
tetsuo29
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 103
Joined: Thu Jun 07, 2007 1:30 am

Beep doesn't work in LXLE 16.04

Post by tetsuo29 » Sat Oct 06, 2018 12:40 am

Title says it all.

ClipArtGuy
Posts: 253
Joined: Wed Aug 19, 2015 4:29 pm

Re: Beep doesn't work in LXLE 16.04

Post by ClipArtGuy » Sat Oct 06, 2018 1:38 am

Confirmed no beep in lubuntu/LXDE 18.04 either.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Beep doesn't work in LXLE 16.04

Post by bogs » Sat Oct 06, 2018 1:41 pm

There has been no beep on any linux that I've **tested by default all the way back to at least Lc 6, and probably to Mc 2.x, but for different reasons.

You can get it to work, part of it is configuring your 'nix distro to play event sounds (I think thats what it was, course, this was a long time ago). Once you have event sounds going, try it and if it doesn't 'beep' at you, you may need to also install mPlayer (doubtful, though, pretty sure just event sounds is needed).

** I should add that I do *not* use 'buntu based distros, though.
Image

ClipArtGuy
Posts: 253
Joined: Wed Aug 19, 2015 4:29 pm

Re: Beep doesn't work in LXLE 16.04

Post by ClipArtGuy » Sat Oct 06, 2018 5:54 pm

FWIW, beep does seem to work in Ubuntu 18.04 as expected. I'm not sure whether or not this qualifies as a bug, since to my understanding, Ubuntu is the only *officially* supported distro....

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Beep doesn't work in LXLE 16.04

Post by bogs » Sat Oct 06, 2018 10:57 pm

Yes, and I have it currently working in LDME 2 (Linux Mint Debian Edition) which is not a currently supported distro, as well as a few others such as antiX, Q40S, etc.
Last edited by bogs on Sun Oct 07, 2018 5:31 am, edited 1 time in total.
Image

tetsuo29
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 103
Joined: Thu Jun 07, 2007 1:30 am

Re: Beep doesn't work in LXLE 16.04

Post by tetsuo29 » Sun Oct 07, 2018 12:49 am

ClipArtGuy wrote:
Sat Oct 06, 2018 5:54 pm
FWIW, beep does seem to work in Ubuntu 18.04 as expected. I'm not sure whether or not this qualifies as a bug, since to my understanding, Ubuntu is the only *officially* supported distro....
That makes me wonder what is different in LXLE because it is based on Ubuntu. Anyway, I'm working on just using mplayer to play a small wave file in order to get the beep I need.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Beep doesn't work in LXLE 16.04

Post by bogs » Sun Oct 07, 2018 5:35 am

tetsuo29 wrote:
Sun Oct 07, 2018 12:49 am
That makes me wonder what is different in LXLE because it is based on Ubuntu.
Downloading it now to take a look, if I find out I'll post back. I was a little surprised the download weighs in at almost a gig and a half, which seems pretty large for a 'light weight' distro target :|

*Edit ~ this may be more challenging than I initially thought, will take another look at it tomorrow.
Image

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Beep doesn't work in LXLE 16.04

Post by bogs » Sun Oct 07, 2018 3:06 pm

Well, after playing with this distro for a bit, I can tell you *part* of the problem, LXLE doesn't load the pc speaker module by default.

You can test this out for yourself to see if your system is loading it ~

Code: Select all

1.) check to see if pc speaker module is loaded - 
lsmod | grep pcspkr
	--should produce something like the following - 
pcspkr                  1434  0
	-- if you get an empty prompt, the module isn't loaded.
	This is either due to being blacklisted, or the kernel does not have the module.
Selection_078.png
Pc speaker module not loaded by default...
If you get a result from the modprobe, that means the module is being blacklisted. On your distro, the file is located here ~

Code: Select all

/etc/modprobe.d/blacklist.conf
...and the line your looking to comment out will say "blacklist pcspkr" (without the quotes).

Anyhow, the above is just the first part of the problem, enabling that alone didn't resolve the issue, so I suspect that you would have to find (and unmute) the particular system sound events for this distro. I can tell the 'beep' command is generating an event, at least. Will check back if I get the rest resolved.
Image

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Beep doesn't work in LXLE 16.04

Post by bogs » Sun Oct 07, 2018 11:55 pm

Hm, maybe the above *is* all you need to do, just found out in virtual box you can't get a system beep :P give it a try, let us know.
Image

Post Reply

Return to “Linux”