all
a
/
b
/
c
/
f
/
h
/
j
/
jp
/
l
/
o
/
q
/
s
/
sw
/
lounge
cgi
up
wiki
Heyuri!
Bulletin Boards
2D Cute
2D Ero
2D Lolikon
3D Girls
Anime/Manga
Flash
Girl Talk
日本語/Japan
Lounge
Oekaki
Off-Topic
Site Discussion
Strange World
Overboard
Heyuri★CGI
Heyuri★CGI
@PartyII
Battle Royale R
Chat
Chinsouki★
Dating
DevChat
Drama Club
Hakoniwa Islands PvE
Hakoniwa Islands PvP
Polls
Slime Breeder
Web Banana
Web Shiritori
Yumemiru Gambler
Kakiko Checker
Other
Anime Nominations
Banners
Cytube
Heyuri Calendar
Heyuri Wiki
MAL Club
Museum
Post Notifications
Steam Group
Uploader
[
Home
] [
Catalog
] [
Search
] [
Inbox
] [
Write PM
] [
Admin
]
Off-Topic@Heyuri
it's the place to be!
[
Return
]
Posting mode: Reply
Name
Email
Subject
Post
Comment
File
Animated GIF
Password
(for deletion, 8 chars max)
Allowed file types are: gif, jpg, jpeg, png, bmp, swf, webm, mp4
Maximum file size allowed is 50000 KB.
Images greater than 200 * 200 pixels will be thumbnailed.
24
unique users in the last 10 minutes (including lurkers)
Switch form position
|
BBCode reference
Read the
rules
before you post.
Protect your username, use a
tripcode!
日本のへゆり
2025/09/03
-
AHoge Editor
is now available in English! You can easily create your own AA with it.
2025/05/04
-
Heyuri Calendar
has been launched. Find out about upcoming Heyuri events!
2025/04/01
-
NEW GAME:
Slime Breeder
! Commit slimecest with your ancestors to create teh ultimate slime!
2024/09/12
-
NEW GAME:
Battle Royale R
! Make characters and see if they can win the Heyuri Cup!
[
Show all
]
We will watch
Strike Witches
(2008) next Saturday 18:00 UTC [
Info
] [
Countdown
]
File:
fbsdorb.png
(108 KB, 450x435)
[
ImgOps
]
How to switch audio sources on freebsd
Anonymous
2025/09/03
(Wed)
05:14:24
No.
154659
Unlike linux, freebsd doesn't automatically switch between audio sources if you plug in your headphones. I had a hard time trying to figure out how to do it but I finally got it. Kind of.
Firstly you'll need to know what is the pcm number of your headphone jack port and for that you'll use the
dmesg | grep pcm
command. There should show up multiple Realtek entries for most people and the second one is usually the port for headphones. For me its located at pcm5 since the first entries were a bunch of nvidia garbage.
To change the audio source from speakers to headphones system wide you'll use the
sysctl hw.snd.default_unit=X
command replacing X with whatever number is the pcm number for your headphone port. Some programs mainly web browsers use pulseaudio to manage sound so don't be surprised when firefox plays sound from the speaker and your audio player plays sound from your headphones. To fix that you'll use the
pactl set-default-sink oss_output.dspX
command, again replacing the X to switch the pulseaudio output to your headphones as well.
Those commands are too long for me to bother remembering so I just alias them in my .zshrc file like this:
alias s2h="pactl set-default-sink oss_output.dsp5 & sysctl hw.snd.default_unit=5"
and
alias s2s="pactl set-default-sink oss_output.dsp4 & sysctl hw.snd.default_unit=4"
to switch both system audio and pulseaudio source at the same time.
It's not exactly automatic but I'm sure you could make a script that does that for you but this is what i managed to do so far. If anyone's trying to figure out how sound works on freebsd then I hope this helps!
Marked for deletion (Old)
>>
1
hachikuji
◆naRqMpZoTs
## lost snail
2025/09/03
(Wed)
06:24:07
No.
154662
thx
>>
2
Anonymous
2025/09/04
(Thu)
15:30:06
No.
154762
thats similar how openbsd dose it
https://www.openbsd.org/faq/faq13.html#usbaudio
https://www.openbsd.org/faq/faq13.html#default
i am moving to freebsd soon (like in 4-10 days). but only for my server so i would not need sound. but thanks for info!
Delete post: [
File only
]
Password: