The officially official Devuan Forum!

You are not logged in.

#76 Re: Other Issues » [SOLVED] Synaptic No Longer Shows Repositories » 2025-10-03 15:30:25

hello ,

i would need to insert an entry into repositories and would like to use Synaptic;

is there an easy solution available for Devuan Daedalus+ to show repositories in Synaptic `?

thanks.

sudo synaptic
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 100, in <module>
    app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 162, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 108, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 605, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Devuan/daedalus

#78 Re: Other Issues » [SOLVED] LibreOffice install failing (daedalus ARM64) » 2025-09-30 13:16:44

tried this today and could download libreoffice regularly

downloaded latest arm64 for daedalus here

arm-files.devuan.org (latest raspberry pi builds however)

#79 Desktop and Multimedia » [SOLVED] Error Sylpheed upon start (G FILENAME ENCODING NOT SET) » 2025-09-30 12:08:55

kapqa
Replies: 2

Hello ,

i am wanting to use the program emailclient Sylpheed for arm64

on Devuanpi am presented with the following error>

https://imgur.com/ZRDGCnp.png

Is it safe to continue or how could i best clear this error message?

thanks.

#80 Re: Installation » firefox on old 32 bit cpu » 2025-09-27 16:50:33

lke also this browser

https://www.seamonkey-project.org/releases/

deb files
https://sourceforge.net/projects/ubuntu … lla-build/

AI companion: For Windows, you'd need to locate the last version that supported older CPUs not supporting the SSE2 instruction set, which is SeaMonkey 2.40.

#81 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-24 16:41:39

thank you guys, the sound was only muted.

it is not so easy to figure out also with alsamixer in terminal, since it says @00 or @mm

but sound is back.
will check the script asaw.

#82 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-24 15:19:45

could not test the script yet,
after uninstall ing pulseaudio and reboot there is no longer sound

aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
hw:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Direct hardware device without any conversions
plughw:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Hardware device with all software conversions
default:CARD=Headphones
    bcm2835 Headphones, bcm2835 Headphones
    Default Audio Device
sysdefault:CARD=Headphones
    bcm2835 Headphones, bcm2835 Headphones
    Default Audio Device
dmix:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Direct sample mixing device
usbstream:CARD=Headphones
    bcm2835 Headphones
    USB Stream Output
hw:CARD=vc4hdmi0,DEV=0
    vc4-hdmi-0, MAI PCM i2s-hifi-0
    Direct hardware device without any conversions
plughw:CARD=vc4hdmi0,DEV=0
    vc4-hdmi-0, MAI PCM i2s-hifi-0
    Hardware device with all software conversions
default:CARD=vc4hdmi0
    vc4-hdmi-0, MAI PCM i2s-hifi-0
    Default Audio Device
sysdefault:CARD=vc4hdmi0
    vc4-hdmi-0, MAI PCM i2s-hifi-0
    Default Audio Device
hdmi:CARD=vc4hdmi0,DEV=0
    vc4-hdmi-0, MAI PCM i2s-hifi-0
    HDMI Audio Output
dmix:CARD=vc4hdmi0,DEV=0
    vc4-hdmi-0, MAI PCM i2s-hifi-0
    Direct sample mixing device
usbstream:CARD=vc4hdmi0
    vc4-hdmi-0
    USB Stream Output
hw:CARD=vc4hdmi1,DEV=0
    vc4-hdmi-1, MAI PCM i2s-hifi-0
    Direct hardware device without any conversions
plughw:CARD=vc4hdmi1,DEV=0
    vc4-hdmi-1, MAI PCM i2s-hifi-0
    Hardware device with all software conversions
default:CARD=vc4hdmi1
    vc4-hdmi-1, MAI PCM i2s-hifi-0
    Default Audio Device
sysdefault:CARD=vc4hdmi1
    vc4-hdmi-1, MAI PCM i2s-hifi-0
    Default Audio Device
hdmi:CARD=vc4hdmi1,DEV=0
    vc4-hdmi-1, MAI PCM i2s-hifi-0
    HDMI Audio Output
dmix:CARD=vc4hdmi1,DEV=0
    vc4-hdmi-1, MAI PCM i2s-hifi-0
    Direct sample mixing device
usbstream:CARD=vc4hdmi1
    vc4-hdmi-1
    USB Stream Output
$ 

i think it is because alsa-base is missing?

#83 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-24 14:49:30

alsamixer wont be of much use if there is no alsa functioning on devuanpi+
is that even possible?

but if i evoke

xfce4-terminal -e 'alsamixer -c vc4hdmi0' the sound does not magically change from headphone to vc4hmi0
clearly the alsamixer is lacking some beats nowadays.. o r i am getting deafer.

thanks, will have to uninstall pulseaudio first and then try your scipt, provided alsa/audio is still functioning.

#84 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-24 14:22:14

ok, yes, that would be very nice, one click or more.

now if alsamixer opens for Headphones, but it should also switch source, does it do it?

probably not.

https://ibb.co/9H3sFMZs

#85 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-24 13:37:24

@igorzwx for now it functions oso we could also lay it to rest<
had to install xfce4 anyway because otherwise would not get a desktopZ
devuanpi as i understand it is a work in progress and many thing still dont function as they could.

but for the alsamixer situation think some cannibalising has occured very sad that features being castrated dont like at all
so there is hope that a revival will bring some nice feature to this mixer that makes it easy to swtich sources.

https://ibb.co/27q44vQg

#86 Re: Hardware & System Configuration » [SOLVED] +(arm64) how disable wifi+bt? » 2025-09-24 13:25:41

thanks,

it is there, just someplace else.

solved by =menu-config which lets easily edit config.txt and saves

/boot/broadcom/config.txt

would be nice if there were toggle in Network section to activate/deactivate also the WiFi/Bluetooth (most probably needed separately)

#87 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-24 10:34:34

thanks , it function after pulseaudio removed, however not on devuanpi
it seems devuanpi is missing alsa-base or similar, because after removing pulseaudio there is no more sound.

on raspios the c\hange is made, a little bit silly situation resulted however, to change the playback from one device now to copy .asoundrc , practically heeded your advice and made several copy for different devices i~d like to activate.

it is no issue at all for me since it cost next to nothing, however there is room for improvement<  if i  remember correctly , there was a similar situationn on debian wheezy since after removing pulseaudio, the alsa plugin would only function for regulating the volume and not much more else, but could be mistaken.

EDIT> checked on older version of debian, not sure if the alsa mixer there effectively allowed for selection of devices , but probably it did, and you can mute/unmute. picture is taken of debian 5.

https://ibb.co/PZ085nwg

#88 Re: Hardware & System Configuration » [SOLVED] +(arm64) how disable wifi+bt? » 2025-09-24 10:22:29

Hello ,

thanks , it is missing.

cat /boot/config.txt   Z=file or directory not found

#89 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-22 20:35:58

as before, it would continue to play on headphone-out (with both vc4hdmi0 or vc4hdmi1), so most probably pulseaudio is interfering or the config is not fully satisfactorly. will test some more 2morrow.

thank you and good night.

fuser -kv $(find /dev/snd -type c 2>/dev/null)
                     USER        PID ACCESS COMMAND
/dev/snd/controlC1:  test1      2251 F.... pulseaudio
/dev/snd/controlC0:  test1      2251 F.... pulseaudio
$ fuser -av $(find /dev/snd -type c 2>/dev/null)
                     USER        PID ACCESS COMMAND
/dev/snd/controlC2:
/dev/snd/pcmC2D0p:
/dev/snd/controlC1:  test1      2898 F.... pulseaudio
/dev/snd/pcmC1D0p:
/dev/snd/controlC0:  test1      2898 F.... pulseaudio
/dev/snd/pcmC0D0p:
/dev/snd/seq:
/dev/snd/timer:

#90 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-22 19:58:34

thank you very much, it plays,
would not have found out. (that easily)

now there are other devices, i have cable on hdmi0.

#91 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-22 19:34:20

feel .asoundrc could be useful in this usecase<

mousepad, installed

#92 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-22 18:53:46

no, want to remove it.
but first want to see how to effectuate change with it present.

maybe pulseuadio interferes with .asoundrc?
it seems whatever i put in there, it is overriden by pavucontrol?

aplay -D hw:0,0 test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
^CAborted by signal Interrupt...
$ aplay -D hw:1,1 test.wav
aplay: main:831: audio open error: No such file or directory
$ aplay -D hw:2,2 test.wav
aplay: main:831: audio open error: No such file or directory
$ cat /proc/asound/cards
 0 [Headphones     ]: bcm2835_headpho - bcm2835 Headphones
                      bcm2835 Headphones
 1 [vc4hdmi0       ]: vc4-hdmi - vc4-hdmi-0
                      vc4-hdmi-0
 2 [vc4hdmi1       ]: vc4-hdmi - vc4-hdmi-1
                      vc4-hdmi-1
$ aplay -D hw:1 test.wav 
aplay: main:831: audio open error: Device or resource busy
$ aplay -D hw:2 test.wav
aplay: main:831: audio open error: Unknown error 524

#93 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-22 18:30:19

For RaspiOS

fuser -av $(find /dev/snd -type c 2>/dev/null)
                     USER        PID ACCESS COMMAND
/dev/snd/controlC2:  rich        733 F.... wireplumber
/dev/snd/pcmC2D0p:
/dev/snd/controlC1:
/dev/snd/pcmC1D0p:
/dev/snd/controlC0:  rich        733 F.... wireplumber
/dev/snd/pcmC0D0p:
/dev/snd/seq:        rich        729 F.... pipewire
/dev/snd/timer:
inxi -A
Audio:
  Device-1: bcm2711-hdmi0 driver: vc4_hdmi
  Device-2: bcm2711-hdmi1 driver: vc4_hdmi
  API: ALSA v: k6.12.34+rpt-rpi-v8 status: kernel-api
  Server-1: PipeWire v: 1.2.7 status: active
cat /proc/asound/cards
 0 [vc4hdmi0       ]: vc4-hdmi - vc4-hdmi-0
                      vc4-hdmi-0
 1 [vc4hdmi1       ]: vc4-hdmi - vc4-hdmi-1
                      vc4-hdmi-1
 2 [Headphones     ]: bcm2835_headpho - bcm2835 Headphones
                      bcm2835 Headphones

for Devuanpi

fuser -av $(find /dev/snd -type c 2>/dev/null)
                     USER        PID ACCESS COMMAND
/dev/snd/controlC2:
/dev/snd/pcmC2D0p:
/dev/snd/controlC1:  test1      2167 F.... pulseaudio
/dev/snd/pcmC1D0p:
/dev/snd/controlC0:  test1      2167 F.... pulseaudio
/dev/snd/pcmC0D0p:
/dev/snd/seq:
/dev/snd/timer:
inxi -A 
Audio:
  Device-1: bcm2711-hdmi0 driver: vc4_hdmi
  Device-2: bcm2711-hdmi1 driver: vc4_hdmi
  API: ALSA v: k6.1.93 status: kernel-api
  Server-1: PulseAudio v: 16.1 status: active
cat /proc/asound/cards
 0 [Headphones     ]: bcm2835_headpho - bcm2835 Headphones
                      bcm2835 Headphones
 1 [vc4hdmi0       ]: vc4-hdmi - vc4-hdmi-0
                      vc4-hdmi-0
 2 [vc4hdmi1       ]: vc4-hdmi - vc4-hdmi-1
                      vc4-hdmi-1

i am primarily interested in sorting it for Devuanpi atm.

#94 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-22 17:41:54

@igor to get arateconf one has to geo go the extra mile first, so it should be feasible also without?

have just checcked on "raspios" which is favored by raspberry pi foundation, and there is also no .asoundrc,
but i presume the plugin which is function beautifully is handled via pulseaudio<
it functions, but there is alot of stuttering involved, which is probably abit feature of pulse as already experienced in the past.

https://ibb.co/wZ9p1zWp

#95 Hardware & System Configuration » [SOLVED] +(arm64) how disable wifi+bt? » 2025-09-22 17:24:32

kapqa
Replies: 4

hello ,

have installed the devuanpi for raspi 4/
am enquiring on how to disable the wi/fi and bt/card since i am not using it and it interferes with my concentration.

on raspios there is

/boot/config.txt

dtoverlay=disable-wifi
dtoverlay=disable-bt

how would it be handled on devuanpi?

thanks.

#96 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-22 16:56:06

I think I would start by making a super simple .asoundrc and going from there.

pcm.!default {
    type hw
    card 0
}

ctl.!default {
    type hw           
    card 0
}

unfortunately this would not switch the audio to device 0 if in pulseaudio hdmi0 is selected as active fallback.
maybe there is some additional info needed to effectuate the change.

https://imgur.com/vUjyq7t.png
https://imgur.com/ccaTY5j.png
https://imgur.com/kDYeQSx.png
https://imgur.com/MR6ptML.png
https://imgur.com/UXc7DAy.png

#97 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-22 16:33:43

@greenjeans, yes, have installed xfce4 and start with "startx" for user now test1.
thanks, will look into it and test abit all your solutions that may reach.

EDIT> have not yet removed pulse or pipe, would like to see if this can be handled at "pristine" state right out of devuanpi. pulse audio is a bit handy as it allows via pavucontrol socalled "fallback" reallive-switching of sources. but the task should be handled by alsa via alsamixer or any other feature easily activabble even for a fairly inexperienced user.

#98 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-22 15:34:40

there is unfortunately no .asoundrc as it seems ,
however i am @root account since the adduser did not create a user directory and hence startx would not start for sudo user.

maybe there is a switch in this configuration however that can easily be operated?

/usr/share/alsa/alsa.conf

#
#  ALSA library configuration file
#

# pre-load the configuration files

@hooks [
	{
		func load
		files [
			"/var/lib/alsa/conf.d"
			"/usr/etc/alsa/conf.d"
			"/etc/alsa/conf.d"
			"/etc/asound.conf|||/usr/etc/asound.conf"
			"~/.asoundrc"
			{
				@func concat
				strings [
					{
						@func getenv
						vars [
							XDG_CONFIG_HOME
						]
						default "~/.config"
					}
					"/alsa/asoundrc"
				]
			}
		]
		errors false
	}
]

# load card-specific configuration files (on request)

cards.@hooks [
	{
		func load
		files [
			{
				@func concat
				strings [
					{ @func datadir }
					"/cards/aliases.conf"
				]
			}
		]
	}
	{
		func load_for_all_cards
		files [
			{
				@func concat
				strings [
					{ @func datadir }
					"/cards/"
					{ @func private_string }
					".conf"
				]
			}
			{
				root {
					@func private_integer
				}
				file {
					@func concat
					strings [
						"/var/lib/alsa/card"
						{ @func private_integer }
						".conf.d"
					]
				}
			}
		]
		table {
			id {
				@func concat
				strings [
					{ @func private_integer }
				]
			}
			value {
				@func concat
				strings [
					"cards."
					{ @func private_string }
				]
			}
		}
		errors false
	}
]

#
# defaults
#

# show all name hints also for definitions without hint {} section
defaults.namehint.showall on
# show just basic name hints
defaults.namehint.basic on
# show extended name hints
defaults.namehint.extended on
#
defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 0
defaults.pcm.subdevice -1
defaults.pcm.nonblock 1
defaults.pcm.compat 0
defaults.pcm.minperiodtime 5000		# in us
defaults.pcm.ipc_key 5678293
defaults.pcm.ipc_gid audio
defaults.pcm.ipc_perm 0660
defaults.pcm.tstamp_type default
defaults.pcm.dmix.max_periods 0
defaults.pcm.dmix.channels 2
defaults.pcm.dmix.rate 48000
defaults.pcm.dmix.format unchanged
defaults.pcm.dmix.card defaults.pcm.card
defaults.pcm.dmix.device defaults.pcm.device
defaults.pcm.dsnoop.card defaults.pcm.card
defaults.pcm.dsnoop.device defaults.pcm.device
defaults.pcm.front.card defaults.pcm.card
defaults.pcm.front.device defaults.pcm.device
defaults.pcm.rear.card defaults.pcm.card
defaults.pcm.rear.device defaults.pcm.device
defaults.pcm.center_lfe.card defaults.pcm.card
defaults.pcm.center_lfe.device defaults.pcm.device
defaults.pcm.side.card defaults.pcm.card
defaults.pcm.side.device defaults.pcm.device
defaults.pcm.surround21.card defaults.pcm.card
defaults.pcm.surround21.device defaults.pcm.device
defaults.pcm.surround40.card defaults.pcm.card
defaults.pcm.surround40.device defaults.pcm.device
defaults.pcm.surround41.card defaults.pcm.card
defaults.pcm.surround41.device defaults.pcm.device
defaults.pcm.surround50.card defaults.pcm.card
defaults.pcm.surround50.device defaults.pcm.device
defaults.pcm.surround51.card defaults.pcm.card
defaults.pcm.surround51.device defaults.pcm.device
defaults.pcm.surround71.card defaults.pcm.card
defaults.pcm.surround71.device defaults.pcm.device
defaults.pcm.iec958.card defaults.pcm.card
defaults.pcm.iec958.device defaults.pcm.device
defaults.pcm.modem.card defaults.pcm.card
defaults.pcm.modem.device defaults.pcm.device
defaults.pcm.file_format raw
defaults.pcm.file_truncate true		# truncate files via file or tee PCM
defaults.rawmidi.card 0
defaults.rawmidi.device 0
defaults.rawmidi.subdevice -1
defaults.hwdep.card 0
defaults.hwdep.device 0
defaults.timer.class 2
defaults.timer.sclass 0
defaults.timer.card 0
defaults.timer.device 0
defaults.timer.subdevice 0

#
#  PCM interface
#

pcm.hw {
	@args [ CARD DEV SUBDEV ]
	@args.CARD {
		type string
		default {
			@func getenv
			vars [
				ALSA_PCM_CARD
				ALSA_CARD
			]
			default {
				@func refer
				name defaults.pcm.card
			}
		}
	}
	@args.DEV {
		type integer
		default {
			@func igetenv
			vars [
				ALSA_PCM_DEVICE
			]
			default {
				@func refer
				name defaults.pcm.device
			}
		}
	}
	@args.SUBDEV {
		type integer
		default {
			@func refer
			name defaults.pcm.subdevice
		}
	}		
	type hw
	card $CARD
	device $DEV
	subdevice $SUBDEV
	hint {
		show {
			@func refer
			name defaults.namehint.extended
		}
		description "Direct hardware device without any conversions"
	}
}

pcm.plughw {
	@args [ CARD DEV SUBDEV ]
	@args.CARD {
		type string
		default {
			@func getenv
			vars [
				ALSA_PCM_CARD
				ALSA_CARD
			]
			default {
				@func refer
				name defaults.pcm.card
			}
		}
	}
	@args.DEV {
		type integer
		default {
			@func igetenv
			vars [
				ALSA_PCM_DEVICE
			]
			default {
				@func refer
				name defaults.pcm.device
			}
		}
	}
	@args.SUBDEV {
		type integer
		default {
			@func refer
			name defaults.pcm.subdevice
		}
	}		
	type plug
	slave.pcm {
		type hw
		card $CARD
		device $DEV
		subdevice $SUBDEV
	}
	hint {
		show {
			@func refer
			name defaults.namehint.extended
		}
		description "Hardware device with all software conversions"
	}
}

pcm.plug {
	@args [ SLAVE ]
	@args.SLAVE {
		type string
	}
	type plug
	slave.pcm $SLAVE
}

pcm.shm {
	@args [ SOCKET PCM ]
	@args.SOCKET {
		type string
	}
	@args.PCM {
		type string
	}
	type shm
	server $SOCKET
	pcm $PCM
}

pcm.tee {
	@args [ SLAVE FILE FORMAT ]
	@args.SLAVE {
		type string
	}
	@args.FILE {
		type string
	}
	@args.FORMAT {
		type string
		default {
			@func refer
			name defaults.pcm.file_format
		}
	}
	type file
	slave.pcm $SLAVE
	file $FILE
	format $FORMAT
	truncate {
		@func refer
		name defaults.pcm.file_truncate
	}
}

pcm.file {
	@args [ FILE FORMAT ]
	@args.FILE {
		type string
	}
	@args.FORMAT {
		type string
		default {
			@func refer
			name defaults.pcm.file_format
		}
	}
	type file
	slave.pcm null
	file $FILE
	format $FORMAT
	truncate {
		@func refer
		name defaults.pcm.file_truncate
	}
}

pcm.null {
	type null
	hint {
		show {
			@func refer
			name defaults.namehint.basic
		}
		description "Discard all samples (playback) or generate zero samples (capture)"
	}
}

# redirect to load-on-demand extended pcm definitions
pcm.cards cards.pcm

pcm.default cards.pcm.default
pcm.sysdefault cards.pcm.default
pcm.front cards.pcm.front
pcm.rear cards.pcm.rear
pcm.center_lfe cards.pcm.center_lfe
pcm.side cards.pcm.side
pcm.surround21 cards.pcm.surround21
pcm.surround40 cards.pcm.surround40
pcm.surround41 cards.pcm.surround41
pcm.surround50 cards.pcm.surround50
pcm.surround51 cards.pcm.surround51
pcm.surround71 cards.pcm.surround71
pcm.iec958 cards.pcm.iec958
pcm.spdif iec958
pcm.hdmi cards.pcm.hdmi
pcm.dmix cards.pcm.dmix
pcm.dsnoop cards.pcm.dsnoop
pcm.modem cards.pcm.modem
pcm.phoneline cards.pcm.phoneline

#
#  Control interface
#
	
ctl.default cards.ctl.default
ctl.sysdefault cards.ctl.default

ctl.hw {
	@args [ CARD ]
	@args.CARD {
		type string
		default {
			@func getenv
			vars [
				ALSA_CTL_CARD
				ALSA_CARD
			]
			default {
				@func refer
				name defaults.ctl.card
			}
		}
	}
	type hw
	card $CARD
	hint.description "Direct control device"
}

ctl.shm {
	@args [ SOCKET CTL ]
	@args.SOCKET {
		type string
	}
	@args.CTL {
		type string
	}
	type shm
	server $SOCKET
	ctl $CTL
}

#
#  RawMidi interface
#

rawmidi.default {
	type hw
	card {
		@func getenv
		vars [
			ALSA_RAWMIDI_CARD
			ALSA_CARD
		]
		default {
			@func refer
			name defaults.rawmidi.card
		}
	}
	device {
		@func igetenv
		vars [
			ALSA_RAWMIDI_DEVICE
		]
		default {
			@func refer
			name defaults.rawmidi.device
		}
	}
	hint.description "Default raw MIDI device"
}

rawmidi.hw {
	@args [ CARD DEV SUBDEV ]
	@args.CARD {
		type string
		default {
			@func getenv
			vars [
				ALSA_RAWMIDI_CARD
				ALSA_CARD
			]
			default {
				@func refer
				name defaults.rawmidi.card
			}
		}
	}
	@args.DEV {
		type integer
		default {
			@func igetenv
			vars [
				ALSA_RAWMIDI_DEVICE
			]
			default {
				@func refer
				name defaults.rawmidi.device
			}
		}
	}
	@args.SUBDEV {
		type integer
		default -1
	}
	type hw
	card $CARD
	device $DEV
	subdevice $SUBDEV
	hint {
		description "Direct rawmidi driver device"
		device $DEV
	}
}

rawmidi.virtual {
	@args [ MERGE ]
	@args.MERGE {
		type string
		default 1
	}
	type virtual
	merge $MERGE
}

#
#  Sequencer interface
#

seq.default {
	type hw
	hint.description "Default sequencer device"
}

seq.hw {
	type hw
}

#
#  HwDep interface
#

hwdep.default {
	type hw
	card {
		@func getenv
		vars [
			ALSA_HWDEP_CARD
			ALSA_CARD
		]
		default {
			@func refer
			name defaults.hwdep.card
		}
	}
	device {
		@func igetenv
		vars [
			ALSA_HWDEP_DEVICE
		]
		default {
			@func refer
			name defaults.hwdep.device
		}
	}
	hint.description "Default hardware dependent device"
}

hwdep.hw {
	@args [ CARD DEV ]
	@args.CARD {
		type string
		default {
			@func getenv
			vars [
				ALSA_HWDEP_CARD
				ALSA_CARD
			]
			default {
				@func refer
				name defaults.hwdep.card
			}
		}
	}
	@args.DEV {
		type integer
		default {
			@func igetenv
			vars [
				ALSA_HWDEP_DEVICE
			]
			default {
				@func refer
				name defaults.hwdep.device
			}
		}
	}
	type hw
	card $CARD
	device $DEV
	hint {
		description "Direct hardware dependent device"
		device $DEV
	}
}

#
#  Timer interface
#

timer_query.default {
	type hw
}

timer_query.hw {
	type hw
}

timer.default {
	type hw
	class {
		@func refer
		name defaults.timer.class
	}
	sclass {
		@func refer
		name defaults.timer.sclass
	}
	card {
		@func refer
		name defaults.timer.card
	}
	device {
		@func refer
		name defaults.timer.device
	}
	subdevice {
		@func refer
		name defaults.timer.subdevice
	}
	hint.description "Default timer device"
}

timer.hw {
	@args [ CLASS SCLASS CARD DEV SUBDEV ]
	@args.CLASS {
		type integer
		default {
			@func refer
			name defaults.timer.class
		}
	}
	@args.SCLASS {
		type integer
		default {
			@func refer
			name defaults.timer.sclass
		}
	}
	@args.CARD {
		type string
		default {
			@func refer
			name defaults.timer.card
		}
	}
	@args.DEV {
		type integer
		default {
			@func refer
			name defaults.timer.device
		}
	}
	@args.SUBDEV {
		type integer
		default {
			@func refer
			name defaults.timer.subdevice
		}
	}
	type hw
	class $CLASS
	sclass $SCLASS
	card $CARD
	device $DEV
	subdevice $SUBDEV
	hint {
		description "Direct timer device"
		device $DEV
	}
}

EDIT> i am now at user @test1 , but there is still no .asoundrc present.

#99 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-22 14:57:34

have to admin that i am quite an ignoramus when it comes to (sound)architecture, and so , no , i havent tested it yet (if asked), as it seems to me quite @advanced magic.

was hoping for something foolproof_ that could also withstand a shuffling around of the devices e.g. when something new is added to the mix, without need for cp files<

like if the alsamixer can do so much finetuning, and actually adjust volumes, what prevents it from actually swtiching the output to the desired device?
maybe there is some @hidden?menu that lets it activate the device one wants to play and finally disable to ?bt_device sufficiently.

#100 Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-22 12:14:33

kapqa
Replies: 42

Hello ,

i have installed devuanpi on pi4 and like how responsive the mpv player can get.

now i would like however to change the default @audio from alsa-headphones to alsa-vc4/hdmi1.
i am selecting in alsamixer F6 and select soundcard, but the sound would  not switch.

what is the proper procedure to switch the sound from the headphones to the HDMI on this raspberry easily, preferably via terminal, or via applet.

thanks.

https://imgur.com/87ZWEQx.png

PRETTY_NAME="Devuan GNU/Linux 5 (daedalus)"
NAME="Devuan GNU/Linux"
VERSION_ID="5"
VERSION="5 (daedalus)"
VERSION_CODENAME="daedalus"
ID=devuan
ID_LIKE=debian
HOME_URL="https://www.devuan.org/"
SUPPORT_URL="https://devuan.org/os/community"
BUG_REPORT_URL="https://bugs.devuan.org/"

Board footer

Forum Software