عندي كرت الصوت وانا حاطط السماعة الهيدفون في السوكت اللي قدام وحاطط السماعة السبيكر في السوكيت اللي وراء
المهم ع وندوز كان سهل الى حد مااني احول ما بين الاتنين- من غير ماشيل واحد فيهم واحط التاني -ببرنامج
لغاية استخدمت
#alt_linux#altلقيت لما بشغل السماعة الهيدفون اللاسبيكر مش بتشتغل معاها فرحت اوي
كنت عاوز اكمل بقى واعرف احول بين الاتنين
لاني لما نت بشغل الاسبيكر الصوت بيبقى موجود في الهيدفون
المهم لقيت دا
التعليق ده
Having both speakers and headphones plugged in and switching in software on-the-fly
By design, Pulseaudio automatically turns off Line Out when headphones are plugged in and uses Headphone slider instead. You can observe this behavior in alsamixer. What we want is to have Headphone and Line Out sliders working separately and at the same time. This is extremely useful if you want to remap Realtek's jacks to have, say, Rear Green for headphones and Blue for speakers (with the help of hdajackretask from alsa-tools).
To achieve this, you should directly edit Pulseaudio mixer's configuration.
1. We tell pulseaudio that headphones are always plugged in.
Edit:
/usr/share/pulseaudio/alsa-mixer/paths/analog-output-lineout.conf
Find:
[Jack Headphone]
state.plugged = no
state.unplugged = unknown
Change no to yes.
If you're using the jacks on the front of your computer's case change [Jack Front Headphone] instead.
2. By default, Line Out's volume controlled only by Master, and not by Line Out slider itself.
We want to merge Line Out with Master. Add this snippet to the end of the file:
[Element Line Out]
switch = mute
volume = merge
3. We need to completely cut off Line Out when we use headphones.
Edit:
/usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf
Add this snippet to the end of the file:
[Element Line Out]
switch = off
volume = off
On some systems you may also need to disable Front by adding this snippet:
[Element Front]
switch = off
volume = off
4. Like Pulseaudio, Alsa itself cuts off speakers when headphones are plugged in.
Open alsamixer: alsamixer -c0 or alsamixer -c1
Use ←/→ to Auto-Mute mode. Disable Auto-Mute Mode with ↓. Close alsamixer with Esc.
Save your changes with: alsactl store
5. Restart Pulseaudio
$ pulseaudio -k
$ pulseaudio --start
Now you have two separate ports on the same sink in pulseaudio. They mute each other, so you can switch to headphones and this will mute Line Out, and vice versa. To switch between ports you can use Gnome or Plasma sound mixer, or install appropriate desktop extension.
أخدت
الخطوات 2 و 3 و4
الاولانية مااخدتش
وبس برنامج التحكم بتاع
pulse audio
اقدر احول بين الاتنين
وللاسف برنامج اسوتشر اللي نزلته مش شايف
حركة الدمج اللي حصلت بين ماستر وال
line out
اللي بقى اسمها
speaker
في
pulse audio control
ومكتوب جنبها اصلا غير متاح هههه
بس مش مهم المهم انه اشتغل والله انا مبسووووط
المصدر
https://askubuntu.com/questions/712517/how-to-switch-between-headphones-and-speakers-without-unplu...دوروا ع العنوان ده في التعليقات
Having both speakers and headphones plugged in and switching in software on-the-fly
#troubleshooting#pulse_audio#sound#switcher#lo2lo2a82في التعليق القادم بقى هحط الاعدادات الموجودة في
ملف
/usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf
واللي تم التعديل فيها زي ما وضح التعليق مع بعض التعديل مني اللي هو مش تعديل ولا حاجة انا بس حذفت خطوة ماكنش ليها لازمة بالنسبة لحالتي
تعديل
You shouldn't edit files directly in /usr/share. If pulseaudio receives an update (for example to fix bugs), your changes will get wiped out. Usually there's a mechanism to provide override files in /etc or similar, but I don't know about pulseaudio specifically.
يعني مع التحديث كل اللي عملته ممكن يطير عاااااااا
عامة مش مهم
المهم الوقت الحالي