LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-12-2018, 06:00 PM   #1
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Cool Volume button


I have noticed that the only environment that my volume button works is in MATE, if I go to LXDE or any other environment nothing happens when I press the volume buttons on my notebook, so how do I remedy that in making it more 'global' (if that is even the right term?).

Last edited by Jeebizz; 06-12-2018 at 06:13 PM.
 
Old 06-12-2018, 06:05 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Three separate problems need three separate threads, imo.
 
Old 06-12-2018, 06:06 PM   #3
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Original Poster
Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by hydrurga View Post
Three separate problems need three separate threads, imo.
You are correct, but I was afraid of it being a bit spammy...
 
Old 06-12-2018, 06:09 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Jeebizz View Post
You are correct, but I was afraid of it being a bit spammy...
It won't be. Just edit this thread (including the title) to one of the topics, and create two new threads for the others.

I probably still won't be able to help with any of them, but I'll give it a go.
 
Old 06-12-2018, 06:13 PM   #5
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Original Poster
Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by hydrurga View Post
It won't be. Just edit this thread (including the title) to one of the topics, and create two new threads for the others.

I probably still won't be able to help with any of them, but I'll give it a go.
Ok I will edit and split into 2 more threads
 
Old 06-12-2018, 06:34 PM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
I didn't think that the control of buttons like this was desktop environment-related, although I could well be wrong. Have you checked to see which code is actually being produced by the key in question and looked to see if that same code is perhaps being use by another application or the desktop environment itself?

Can I just confirm that this is happening on the same hardware running the same distro/version?
 
Old 06-12-2018, 06:48 PM   #7
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Original Poster
Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by hydrurga View Post
I didn't think that the control of buttons like this was desktop environment-related, although I could well be wrong. Have you checked to see which code is actually being produced by the key in question and looked to see if that same code is perhaps being use by another application or the desktop environment itself?

Can I just confirm that this is happening on the same hardware running the same distro/version?
AFAIK it is environment related, because when I was fscking around with Ubuntu Mate and Lubuntu (live); the volume buttons always worked in Ubuntu Mate, but never in Lubuntu.

-edit

Both Ubuntu-Mate and Lubuntu were 18.04 btw

Last edited by Jeebizz; 06-12-2018 at 06:59 PM.
 
Old 06-12-2018, 07:00 PM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
LXDE , what is LXDE? LXDE is an abbreviation for Lightweight X11 Desktop Environment, which sits on top of open box which is a highly configurable, next generation window manager with extensive standards support. But does it support volume buttons on a notebook?

You might be able to use them
Code:
keycode 160 = XF86AudioMute
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
in openbox xml file for keybindings. or something simular, as well as each desktop/WM you'll have to set it up within each one seperately. By whatever means that DT/WM uses to control its keyboard settings.

http://openbox.org/wiki/Help:Bindings
 
Old 06-12-2018, 07:01 PM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Jeebizz View Post
AFAIK it is environment related, because when I was fscking around with Ubuntu Mate and Lubuntu (live); the volume buttons always worked in Ubuntu Mate, but never in Lubuntu.
The thing is, these aren't just different desktop environments, they're different distros (package setups etc.). What would be best is for you to have a test install of, say, Ubuntu MATE and then install LXDE onto that and switch between the two environments while testing the volume button, so that you're keeping as much the same as possible.
 
Old 06-12-2018, 07:05 PM   #10
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Original Poster
Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by hydrurga View Post
The thing is, these aren't just different desktop environments, they're different distros (package setups etc.). What would be best is for you to have a test install of, say, Ubuntu MATE and then install LXDE onto that and switch between the two environments while testing the volume button, so that you're keeping as much the same as possible.
I see. Well I was hoping maybe I could get a clue on how Devuan (under MATE) was using the volume buttons by running dmesg after pressing the volume buttons but no luck.

Quote:
Originally Posted by BW-userx View Post
LXDE , what is LXDE? LXDE is an abbreviation for Lightweight X11 Desktop Environment, which sits on top of open box which is a highly configurable, next generation window manager with extensive standards support. But does it support volume buttons on a notebook?

You might be able to use them
Code:
keycode 160 = XF86AudioMute
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
in openbox xml file for keybindings. or something simular, as well as each desktop/WM you'll have to set it up within each one seperately. By whatever means that DT/WM uses to control its keyboard settings.

http://openbox.org/wiki/Help:Bindings
I will have to try that for LXDE. I guess though I have to check specifically the docs for each environment I want then. Example if I decide I want to use XFCE, at one point or even GNUStep.
 
Old 06-12-2018, 07:17 PM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
If you want to find out which code the button produces, try the following command in the terminal:

Code:
xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'
 
Old 06-12-2018, 07:20 PM   #12
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Original Poster
Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by hydrurga View Post
The thing is, these aren't just different desktop environments, they're different distros (package setups etc.). What would be best is for you to have a test install of, say, Ubuntu MATE and then install LXDE onto that and switch between the two environments while testing the volume button, so that you're keeping as much the same as possible.
One other thing, I feel at least IMO that MATE itself is light enough for an i5 notebook with 8GB of RAM; even though MATE itself isn't considered 'lightweight' , I feel it would be compared to regular GNOME or KDE; though thats probably the only 'heavy' DE I might use. I do like LXDE a lot, but XFCE is also great but so far MATE is the only environment where my volume button just works.

-edit

Quote:
Originally Posted by hydrurga View Post
If you want to find out which code the button produces, try the following command in the terminal:

Code:
xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'
Ok, I'll give that a go.

Last edited by Jeebizz; 06-12-2018 at 07:21 PM.
 
Old 06-12-2018, 07:21 PM   #13
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Jeebizz View Post
One other thing, I feel at least IMO that MATE itself is light enough for an i5 notebook with 8GB of RAM; even though MATE itself isn't considered 'lightweight' , I feel it would be compared to regular GNOME or KDE; though thats probably the only 'heavy' DE I might use. I do like LXDE a lot, but XFCE is also great but so far MATE is the only environment where my volume button just works.
It would be interesting to find out why that is though, wouldn't it?
 
Old 06-12-2018, 07:55 PM   #14
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Original Poster
Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by hydrurga View Post
If you want to find out which code the button produces, try the following command in the terminal:

Code:
xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'
Nothing helpful came up when I did that though:

Click image for larger version

Name:	Screenshot from 2018-06-12 19-53-39.png
Views:	14
Size:	103.4 KB
ID:	27883

The event tester came up, but nothing was being shown when I was pressing the volume
 
Old 06-12-2018, 08:16 PM   #15
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Jeebizz View Post
I see. Well I was hoping maybe I could get a clue on how Devuan (under MATE) was using the volume buttons by running dmesg after pressing the volume buttons but no luck.



I will have to try that for LXDE. I guess though I have to check specifically the docs for each environment I want then. Example if I decide I want to use XFCE, at one point or even GNUStep.
I do not have the luxury of volume buttons that work on my laptop, I've been using my middle mouse wheel that works out rather well. there are two ways to set for volume changing that I'll seen.

xfce4
https://unix.stackexchange.com/quest...in-xfce/342555
xbindkeys
https://ubuntuforums.org/showthread.php?t=2108749
if you search out the web you should find a way to get them to work. I do suppose.

Quote:
Originally Posted by GNUStep
GNUstep is not...
...a desktop

The GNUstep project supplies several official default
applications, such as a Workspace Manager and a
Preferences application, but GNUstep project itself is
not a desktop project.
http://www.gnustep.org/information/aboutGNUstep.html

Last edited by BW-userx; 06-12-2018 at 08:24 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizable encrypted LVM requiring just one password on boot (encrypted volume group)? Nyyr Linux - Software 9 01-24-2013 05:52 AM
Suspend / Hibernate with encrypted root and sapfile fl0 Slackware 1 11-29-2012 05:57 AM
How can I suspend & hibernate with encrypted lvm? yanfaun Linux - Laptop and Netbook 2 09-28-2010 01:49 AM
swap button 2 and button 3 in xterm and terminal only? senjak Linux - Software 2 09-26-2009 11:34 PM
hibernate button not working av.dubey Linux - Newbie 4 03-24-2008 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration