Author Topic: Openbox sound configuration  (Read 2124 times)

Offline unist

  • Full Member
  • ***
  • Posts: 158
Openbox sound configuration
« on: December 17, 2011, 12:18:21 PM »
I just installed Openbox 2011-08 in my second HDD and I noticed that there is no sound at startup for user and password identification. I had the same problem in my PCLinuxOS  LXDE 2011-09 in the main HDD and I solved it after installation of several packages from Synaptic, but I can't recall which one was.
In addition, I have Volume Icon 0.4.3 twice in the lower bar. This happened after I installed VLC additional packages and plugins. Please advice. Thank you.
« Last Edit: December 17, 2011, 06:19:21 PM by unist »
Registered Linux user #547260

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1517
  • In theory, theory=practice, in practice ???
Re: Openbox sound configuration
« Reply #1 on: December 17, 2011, 09:04:41 PM »
In addition, I have Volume Icon 0.4.3 twice in the lower bar. This happened after I installed VLC additional packages and plugins. Please advice. Thank you.

Go to -

/home/user/.config/openbox/autostart.sh

Open autostart.sh in the editor.

Put a # in front of volumeicon as below.

# volume of sound
#volumeicon &


Can't recall about any login sounds.

Have a good one.
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline melodie

  • Hero Member
  • *****
  • Posts: 5946
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Re: Openbox sound configuration
« Reply #2 on: December 18, 2011, 02:50:09 AM »
Hi,

In console type:
$ dbus-launch gdmsetup

you will be prompted for the root password. Then at the 4th tab from the left you have a section to configure a sound. The sounds are in /usr/share/sounds/freedesktop. There are not many, and I think you can add your's.

Regards,
Mélodie

PS: I uploaded a more recent version in November, which has not replaced the one in the repos. The thread is here.

melodie at #lpic-fr on irc.freenode.net

Offline unist

  • Full Member
  • ***
  • Posts: 158
Re: Openbox sound configuration
« Reply #3 on: December 18, 2011, 07:15:22 PM »
Hi,

In console type:
$ dbus-launch gdmsetup

you will be prompted for the root password. Then at the 4th tab from the left you have a section to configure a sound. The sounds are in /usr/share/sounds/freedesktop. There are not many, and I think you can add your's.

Regards,
Mélodie

PS: I uploaded a more recent version in November, which has not replaced the one in the repos. The thread is here.



melodie, thank you for your post. I obtained a message indicating that gdm is not running.
"GDM (GNOME Display Manager) is not running.
You might be using a different display manager, such as KDM (KDE Display Manager), CDE login (dtlogin), or xdm. If you wish to use this feature, then your system will need to be configured to use GDM instead."
I am in PCLinuxOS Openbox 2011-08, just starting to use it.
Registered Linux user #547260

Offline unist

  • Full Member
  • ***
  • Posts: 158
Re: Openbox sound configuration
« Reply #4 on: December 18, 2011, 07:34:31 PM »
Go to -

/home/user/.config/openbox/autostart.sh

Open autostart.sh in the editor.

Put a # in front of volumeicon as below.

# volume of sound
#volumeicon &

Can't recall about any login sounds.

Have a good one.
Ferdes Fides, thank you for your post. I applied the modification to autostart.sh and the volumeicon duplication was solved. Now I have to figure out how to produce sounds at login.
Registered Linux user #547260

Offline melodie

  • Hero Member
  • *****
  • Posts: 5946
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Re: Openbox sound configuration
« Reply #5 on: December 19, 2011, 03:08:37 AM »
Hi,

In console type:
$ dbus-launch gdmsetup

you will be prompted for the root password. Then at the 4th tab from the left you have a section to configure a sound. The sounds are in /usr/share/sounds/freedesktop. There are not many, and I think you can add your's.

Regards,
Mélodie

PS: I uploaded a more recent version in November, which has not replaced the one in the repos. The thread is here.



melodie, thank you for your post. I obtained a message indicating that gdm is not running.
"GDM (GNOME Display Manager) is not running.
You might be using a different display manager, such as KDM (KDE Display Manager), CDE login (dtlogin), or xdm. If you wish to use this feature, then your system will need to be configured to use GDM instead."
I am in PCLinuxOS Openbox 2011-08, just starting to use it.



Openbox do use GDM. If you typed the command in a tty, it can't work. Go to GDM login screen, hit configure, give the root password and you will get the same gui where you can configure the sound as said above. Else, login to the graphical session and type as user "dbus-launch gdmsetup".

melodie at #lpic-fr on irc.freenode.net

Offline unist

  • Full Member
  • ***
  • Posts: 158
Re: Openbox sound configuration
« Reply #6 on: December 20, 2011, 07:19:29 PM »
melodie: I ran $ dbus-launch gdmsetup in tty root terminal (updated correction) and in the 4th tab from the left, in Accessibility, I activated sounds: login screen ready and login successful, both with desktop-login.ogg from /usr/share/sounds/freedesktop, rebooted, but obtained no sound.
I don't know if this is relevant, but when I ran $ dbus-launch gdmsetup there was an error: "gdmsetup[4291]: Gtk-WARNING: GtkSpinButton: setting an adjustment with non-zero page size is deprecated"
« Last Edit: December 21, 2011, 07:31:16 PM by unist »
Registered Linux user #547260

Offline melodie

  • Hero Member
  • *****
  • Posts: 5946
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Re: Openbox sound configuration
« Reply #7 on: December 21, 2011, 03:34:52 AM »
Hi unist,

No, it is not relevant. And what you say doesn't seem to have any sense to me. You don't type in tty : you type in console in a X session, otherwise you can't have the window. tty's are virtual consoles also named "vc" : you access to them by pressing together the keyboard keys "Alt+Ctrl+F1", this is tty1, then "Alt+Ctrl+F2", this is tty2 : you have 6 of them default configured and then you press "Ctrl+Alt+F7" or same with F8 to get back to the X session or X login. (X = graphical).

So forget about gdmsetup and try directly from the GDM login screen. Check that the sound files can be found too.



melodie at #lpic-fr on irc.freenode.net

Offline unist

  • Full Member
  • ***
  • Posts: 158
Re: Openbox sound configuration
« Reply #8 on: December 21, 2011, 07:43:36 AM »
Thank you melodie for your kind attention. I'll apply your suggestions once I return home. I recognize that I need to learn more Linux. Your help is very valuable.
Update: I corrected my previous post (reply #6) changing the word tty for root terminal.
« Last Edit: December 21, 2011, 07:34:54 PM by unist »
Registered Linux user #547260