LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   No sound in KDE when started by startx while working fine when started by kdm/gdm (http://www.linuxquestions.org/questions/ubuntu-63/no-sound-in-kde-when-started-by-startx-while-working-fine-when-started-by-kdm-gdm-850170/)

arj1singh 12-14-2010 09:55 AM

No sound in KDE when started by startx while working fine when started by kdm/gdm
 
I recently installed KDE in my ubuntu 10.10. To access KDE, I want to use
startx /usr/bin/startkde
But using it disables sound in KDE (Sound is working fine in GNOME). It doesn't sound for anything like login sound, totem, mplayer or any other player. But when I press Alt+Ctrl+F1 to change to virtual console, the playback resumes from where it was in time and when coming back Alt+Ctrl+F7 and the time in totem (or any other player) doesn't move. While log out also it doesn't play logout sound and doesn't logout, so I have to press Ctrl+Alt+F1 so that logout sound play then it exits.:banghead:

When starting KDE by kdm or gdm, the sound works normally. But I don't want to login again using kdm or gdm and not to use root user to start kdm or gdm.

I don't know what is the difference between when KDE is started by startx or by kdm/gdm where the same user login in kdm/gdm as that for startx.

Help me please.

Please...

reed9 12-14-2010 11:32 AM

I would guess running startx it's not connecting to the consolekit session.

You could try putting this in ~/.xinitrc

Code:

exec /usr/bin/ck-launch-session /usr/bin/dbus-launch --exit-with-session /usr/bin/startkde
And then run
Code:

startx

arj1singh 12-14-2010 11:55 AM

Thank you reed9. This works now.
I will try to know more regarding this myself.


All times are GMT -5. The time now is 03:34 AM.