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

Notices


Reply
  Search this Thread
Old 09-11-2015, 07:36 PM   #16
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619

Quote:
Originally Posted by average_user View Post
I think you're wrong. kdm/Xsession does not enable POSIX mode, it disables it:

Code:
# Note that the respective logout scripts are not sourced.
case $SHELL in
  */bash)
    [ -z "$BASH" ] && exec $SHELL $0 "$@"
    set +o posix
From `help set':

Code:
Using + rather than - causes these flags to be turned off.
Compare 2 scripts with a different shebang line I posted in an earlier post and an excerpt from Bash manpage. If shebang line is /bin/sh sourcing pulseaudio completion script fails because Bash works in POSIX mode. See also here https://stackoverflow.com/questions/...s-substitution
Doh!

OK, my question is then whether posix mode should be switched off in xdm's Xsession as it is in kdm's Xsession?

chris
 
Old 09-12-2015, 01:51 AM   #17
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
It may take some time to have the posix mode changed in the official xdm package's Xsession (if it happens at all). Of course individual users can modify their own installations. However I've also submitted an update to the SBo pulseaudio package which includes a patch to make its bash completion script more posix friendly so that an unchanged xdm will work as expected.

That changed pulseaudio package should appear in the next round of SBo updates - probably next weekend. If anyone wants to patch it themselves before then, the required patch is attached (with additional .txt suffix). Apply it by adding the line "patch -p0 $CWD/030_posix-completion.diff.txt" just after the existing patch in the pulseaudio.Slackware file.

chris
Attached Files
File Type: txt 030_posix-completion.diff.txt (2.3 KB, 26 views)
 
Old 09-13-2015, 01:01 PM   #18
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Original Poster
Rep: Reputation: 220Reputation: 220Reputation: 220
Nice job. I didn't try it because I already removed pulseaudio and don't need it anymore. However, IMO the best solution would be to modify stock xdm/Xsession. In future we may see other packages that cause similar problems and patching all of them will become troublesome. I modified my xdm/Xsession to act the same as kdm/Xsession, that is to disable POSIX mode when $SHELL is bash. I attach the patch.
Attached Files
File Type: txt xdm-xsession-profile-source-patch.txt (1.8 KB, 46 views)
 
Old 09-14-2015, 09:31 AM   #19
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Quote:
Originally Posted by average_user View Post
I just wanted to check if pulseaudio would make it possible to modify my wireless speakers volume on software level because ALSA cannot do that. Not only didn't, but also made me waste several hours of my life. What a sad day.
I'm not certain I fully understand what's happening here by "speakers volume on software level" or maybe wireless has some difference from hardwired of which I am unaware but my hardwired speaker system utilizing ALSA only (NO pulseaudio and Jack only on demand, usually off) will respond perfectly to volume changes even from the Volume control on my wireless Logitech keyboard. Perhaps this is useless info for you but I thought possibly it was worth knowing that at least someone has experienced zero limitations from not having pulseaudio.
 
Old 09-14-2015, 10:33 AM   #20
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Original Poster
Rep: Reputation: 220Reputation: 220Reputation: 220
The problem here is that my wireless Creative speakers Bluetooth dongle does not have any controls in alsamixer. I have this set: http://us.creative.com/p/speakers/inspire-s2-wireless and use this stock dongle: https://d287ku8w5owj51.cloudfront.ne...450&height=350. These speakers work perfectly with Android. On Slackware however I can pair my PC with speakers without installing any extra software using the dongle and play sound on them but I cannot manipulate volume level. Alsamixer says that "This sound device does not have any controls". In Youtube in Firefox I can use a volume slider to turn down a volume but I cannot increase the maximum volume anyway. What's worse is that for some reason even speaker hardware volume level button does not work on Slackware, I can't even turn the volume down using them. And what's worst is that AUX IN port is broken and after plugging in a jack I can only hear a loud mains hum, exactly like this: https://en.wikipedia.org/wiki/File:MainsBrum50Hz.ogg
 
Old 09-14-2015, 05:09 PM   #21
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Greetings
I'm not sure of the extent of what you mean by "the AUX IN port is broken" as in is it physically broken? I do know this - it is common in audio devices to have pre and post inputs and the fact that the hardware volume control does not work means that somehow the signal source is skipping the pre input and getting in post volume control. It is entirely common that jacks/ports separating preqmp and power amp have interrupt switches. Entirely hardware inputs have physical switches activated by the insertion of a jack.

To visualize this consider the purpose. Commonly one may wish to connect a preamp out to numerous power amp inputs in a playback system. It is very rare that more than one preamp be connected to a single power amp. This is why mixer consoles exist so commonly the toggle switch maintains the preamp connection when the port is used as an output (to an additional amp/spkr combination for added reinforcement) but disconnected when used as an input to that power section.

My conclusion is, since it appears this speaker system works in other environments but controls are not available in Slackware (any other distros?) is that either an additional or updated module is required in the kernel or some additional application is required to gain proper access to the proper port and controls.

You could try some LiveCDs or research what kernel module(s) are being used or are available or if some application might be available. FWIW in the FOSS world it is not at all uncommon that such apps are all but entirely chipset based and that even some other brand that employs the same chipset(s) may work. OTOH Creative does not have a history of playing nice with others or in Linux.

That said, Sennheiser uses a workaround to make the aptX codec functional in Linux and the other codec compatibility for your Creative hardware, SBC, has some availability in Linux through the Bluetooth Special Interest Group. see

SBC Codec

Good luck

Last edited by enorbet; 09-14-2015 at 05:11 PM.
 
Old 09-14-2015, 08:30 PM   #22
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by enorbet View Post
That said, Sennheiser uses a workaround to make the aptX codec functional in Linux and the other codec compatibility for your Creative hardware, SBC, has some availability in Linux through the Bluetooth Special Interest Group. see

SBC Codec

Good luck
BTW an "sbc" package script has been approved and will be available at SBo in the next update.

chris
 
Old 09-15-2015, 04:39 AM   #23
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Original Poster
Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by enorbet View Post
I'm not sure of the extent of what you mean by "the AUX IN port is broken" as in is it physically broken?
Yes, I believe it's physically broken. As I said, I hear a loud annoying humming after plugging in a cable into AUX IN port. It's getting louder when then other end is connected to the computer or mobile phone. This is why I want to use Bluetooth. I would never consider using Bluetooth if AUX IN port worked.
Quote:
Originally Posted by enorbet View Post
You could try some LiveCDs or research what kernel module(s) are being used or are available or if some application might be available. FWIW in the FOSS world it is not at all uncommon that such apps are all but entirely chipset based and that even some other brand that employs the same chipset(s) may work. OTOH Creative does not have a history of playing nice with others or in Linux.
I've been using Linux for several years, some hardware such as HP Pavilion card reader or Acer Aspire microphone didn't work out of the box and I spent a lot of time making it work. It's sad but it's true. I didn't try other LiveCDs, I might try some with a relatively new kernel.
Quote:
Originally Posted by chris.willing View Post
BTW an "sbc" package script has been approved and will be available at SBo in the next update.
Good news, I will give it a try.
 
Old 09-15-2015, 06:13 AM   #24
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by average_user View Post
I hear a loud annoying humming after plugging in a cable into AUX IN port. It's getting louder when then other end is connected to the computer or mobile phone.
Sounds like a classic earth loop.
https://www.soundonsound.com/sos/aug...s/qa0806_4.htm
http://www.epanorama.net/documents/groundloop/
https://en.wikipedia.org/wiki/Ground...electricity%29

It's probably easier to use Bluetooth than to solve an earth loop problem...

Last edited by 55020; 09-15-2015 at 06:19 AM. Reason: add 2nd url
 
Old 09-15-2015, 09:35 AM   #25
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Original Poster
Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by 55020 View Post
Sounds like a classic earth loop.
https://www.soundonsound.com/sos/aug...s/qa0806_4.htm
http://www.epanorama.net/documents/groundloop/
https://en.wikipedia.org/wiki/Ground...electricity%29

It's probably easier to use Bluetooth than to solve an earth loop problem...
Note that humming is only there where a cable is plugged into AUX IN. Speakers are perfectly silent without any cable plugged in. I got a new power adapter, maybe it will help.
 
  


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
LXer: Xtreme Download Manager (XDM) 2015 Released, Amazing Development By Team, Install/Upgrade XDM LXer Syndicated Linux News 2 08-27-2015 07:29 AM
[SOLVED] Squeeze + Pulseaudio + Alsa and USB Midi device causes Pulseaudio crash mad4linux Debian 1 01-26-2011 03:57 AM
[SOLVED] xdm init script problem - /var/run/xdm.pid is gone ? Vilius Debian 2 09-16-2010 03:06 AM
Winecfg crashes on sound tab with Pulseaudio and no 'sounddrivers' without pulseaudio William (Dthdealer) Linux - Software 5 06-13-2010 07:30 AM
XDM opens XDM after login jpbarto Linux - Software 1 01-26-2004 10:23 PM

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

All times are GMT -5. The time now is 11:41 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