You are not logged in.

#1 2013-05-30 07:13:07

graph
Member
Registered: 2010-12-21
Posts: 105

Alsamixer looks weird

My language settings are:

$ echo $LANG
en_GB.utf8

With the above language settings, my alsamixer looks like this: http://i.imgur.com/JoJABtL.png
My guess is, that there's something wrong with my language settings, since setting LANG=C results in a correct looking alsamixer.

How do I get the alsamixer to look normal again?

Last edited by graph (2013-05-30 07:15:53)

Offline

#2 2013-05-30 07:15:25

opt1mus
Member
From: UK
Registered: 2011-12-31
Posts: 212
Website

Re: Alsamixer looks weird

Your $LANG should read;

en_GB.UTF-8

Last edited by opt1mus (2013-05-30 07:15:45)

Offline

#3 2013-05-30 07:21:01

graph
Member
Registered: 2010-12-21
Posts: 105

Re: Alsamixer looks weird

opt1mus wrote:

Your $LANG should read;

en_GB.UTF-8

This still gives the same (negative) result.
I'm using URxvt (daemon/client) and tmux, in case that matters.

Relevant settings:

# locale-gen
Generating locales...
  da_DK.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
Generation complete.
$ locale -a
C
da_DK.utf8
en_DK.utf8
en_GB.utf8
POSIX
$ locale                                                                                                                                                               ~
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=

Last edited by graph (2013-05-30 07:34:08)

Offline

#4 2013-05-30 07:34:35

opt1mus
Member
From: UK
Registered: 2011-12-31
Posts: 212
Website

Re: Alsamixer looks weird

Offline

#5 2013-05-30 07:51:44

graph
Member
Registered: 2010-12-21
Posts: 105

Re: Alsamixer looks weird

Yep. However, nobody seemed to have an answer for that one, so I "fixed" it by switching to "en_GB.UTF-8". In general, my locale/encoding just seems off - See this output:

mv: cannot move â/etc/locale.gen.pacnewâ to â/etc/locale.genâ: Permission denied

(I know why the error is there, I just did it to show the encoding problem)
It seems to have problems with making this sign too: '

Last edited by graph (2013-05-30 07:52:47)

Offline

#6 2013-06-01 10:08:04

graph
Member
Registered: 2010-12-21
Posts: 105

Re: Alsamixer looks weird

Hmm, It seems like my /etc/locale.conf isn't sourced on boot.
This is the contents of /etc/locale.conf

# < /etc/locale.conf
LANG="en_GB.UTF-8"
LOCALE="en_GB.UTF-8"
LC_COLLATE="C"

This the output of locale after a reboot:

$ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX
LC_ALL=

I seem to have done everything the wiki asks me to do. Where should I go from here? My URxvt-font is Terminus, and I'm using zsh, in case that matters...

Last edited by graph (2013-06-01 16:01:53)

Offline

#7 2013-06-02 10:32:45

graph
Member
Registered: 2010-12-21
Posts: 105

Re: Alsamixer looks weird

Just did some testing. The alsamixer looking weird definitively has something to do with tmux, because both URxvt and xterm show alsamixer without a problem, when NOT in a tmux-session.

I'm using systemd, and alsamixer also looks weird in tty when running a tmux-session.

I already have this in my .tmux.conf, as suggested by this post, so that's not the problem.

set -g default-terminal screen-256color

Is this a bug I'm experiencing?

EDIT: I can fix alsamixers weird behavior by setting LC_ALL=C - Is this advisable, or do I break anything by doing that?

Last edited by graph (2013-06-02 10:55:00)

Offline

#8 2013-06-08 09:46:47

chibe
Member
Registered: 2013-06-08
Posts: 2

Re: Alsamixer looks weird

I ran into the same problem and figured out that the cause was that '/etc/profile.d/locale.sh' was an empty file, so locales were not properly set on login. Reinstalling the 'filesystem' package solved the issue.

Offline

Board footer

Powered by FluxBB