OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Mono headphone output?
defunked
post Jul 23 2018, 08:06 AM
Post #1





Group: Members
Posts: 24
Joined: 21-July 18
Member No.: 826,576



I have come across two audio related problems with Sailfish CE on the Gemini. First, when headphones are plugged in to the device, the speakers continue to produce audio along with the headphone. It is my understanding that the Gemini has a single stereo audio DAC, but I expected the OS/driver to switch the output path from the speakers/amplifier to the headphones, when the headphones are inserted. In addition, the headphone are mono, along with the speakers.. That is certainly not right. I know the speakers are mono (and apparently phase inverted), but my understanding was that this hardware bug did not apply to the headphone jack. Has any one else noticed this behavior?

Bluetooth audio sending works fine.
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
defunked
post Jul 24 2018, 07:47 AM
Post #2





Group: Members
Posts: 24
Joined: 21-July 18
Member No.: 826,576



Good to know it isn't a hardware problem with my particular unit.

I am still getting to know my way around Sailfish. I tried to build the simple QML Hello World example, and can't seem to get it to run on the simulator. I prefer to program in straight C, with a text editor and simple compiling scripts. As such, build tools make my head spin. I am used to writing GUI stuff in GTK+ so I don't have to mess around with C++, but I guess I am being pushed to into C++ land with sailfish. Is it possible to skip QML and build a UI directly from C++ with QT?

I have been reluctant to mess around in /etc/ out of concern that changes will get over-written during an OS update. Any idea what an OS update would over-write from that perspective?

Thanks for the information on pulse audio control.
Go to the top of the page
 
+Quote Post
vader
post Jul 24 2018, 02:05 PM
Post #3





Group: Members
Posts: 285
Joined: 21-January 18
Member No.: 816,775



QUOTE(defunked @ Jul 25 2018, 01:47 AM) *
Good to know it isn't a hardware problem with my particular unit.

I am still getting to know my way around Sailfish. I tried to build the simple QML Hello World example, and can't seem to get it to run on the simulator. I prefer to program in straight C, with a text editor and simple compiling scripts. As such, build tools make my head spin. I am used to writing GUI stuff in GTK+ so I don't have to mess around with C++, but I guess I am being pushed to into C++ land with sailfish. Is it possible to skip QML and build a UI directly from C++ with QT?


I develop on the gemini using vi (or if I feel lazy, tIDE). Have you installed openrepos? The app is called storeman and gives you access to third party apps/libs etc. You need to enable third party installs in the settings somewhere smile.gif I am a C programmer (linux embedded devices) who dabbles in lots of things. I am going to teach myself QML only so I can be a good citizen on sailfish smile.gif


QUOTE(defunked @ Jul 25 2018, 01:47 AM) *
I have been reluctant to mess around in /etc/ out of concern that changes will get over-written during an OS update. Any idea what an OS update would over-write from that perspective?


If it is an incremental update (ie. pkcon refresh; pkcon update) then you should be ok. Burning new firmware will of course blot everything.

As far as headphones go, I added an accessories.ini to /etc/ohm/plugins.d which monitored the headphone socket. It works brilliantly when inserting the headphones, but doesn't seem to detect/do anything when they are removed. I will probably just write a shell inotify script which directly calls pactl.
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th May 2020 - 01:31 AM