вторник, ноября 19, 2024

FreeBSD14 and ThinkPad X1 Carbon Gen9. Brightness with a keyboard

 acpi_ibm(4) provides support for multiple hotkeys on ThinkPad X1 Carbon Gen9, so:

# echo acpi_ibm_load=\"YES\" >> /boot/loader.conf

or it's possible to load that kernel driver on a running system:

# kldload acpi_ibm

Now try to run the following command to see ACPI events:

# cat /var/run/devd.pipe

press brightness up/down keys (those are combined with the F6/F5 keys correspondingly), and see events:

!system=ACPI subsystem=IBM type=\_SB_.PC00.LPCB.EC__.HKEY notify=0x10
!system=ACPI subsystem=IBM type=\_SB_.PC00.LPCB.EC__.HKEY notify=0x11

Moving ahead and creating a configuration file for the devd(8) in /usr/local/etc/devd directory,
let's name it x1cg9.conf:

notify 0 {
        match "system"          "ACPI";
        match "subsystem"       "IBM";
        match "notify"          "0x10";
        action                  "backlight +";
};

notify 0 {
        match "system"          "ACPI";
        match "subsystem"       "IBM";
        match "notify"          "0x11";
        action                  "backlight -";
};

вторник, октября 15, 2024

ThinkPad X1 Carbon Gen9. Important useful sound settings

I've found the following important useful settings for the /boot/device.hints on the FreeBSD forum:

hint.hdaa.0.nid19.config="as=1 seq=0"

hint.hdaa.0.nid20.config="as=1 seq=2"

hint.hdaa.0.nid23.config="as=1 seq=1"

hint.hdaa.0.nid24.config="as=1 seq=2"

hint.hdaa.0.nid26.config="as=1 seq=1"

hint.hdaa.0.nid27.config="as=1 seq=2"

hint.hdaa.0.nid30.config="as=1 seq=1"

hint.hdaa.0.nid33.config="as=1 seq=15 device=Headphones"


i3 and sound control from keyboard on FreeBSD

bindsym XF86AudioRaiseVolume exec --no-startup-id mixer vol=+10% && $refresh_i3status

bindsym XF86AudioLowerVolume exec --no-startup-id mixer vol=-10% && $refresh_i3status

bindsym XF86AudioMute exec --no-startup-id "mixer vol.mute | grep on; [ $? -eq 0 ] && mixer vol.mute=off || mixer vol.mute=on && $refresh_i3status"

bindsym XF86AudioMicMute exec --no-startup-id "mixer mic.mute | grep on; [ $? -eq 0 ] && mixer mic.mute=off || mixer mic.mute=on && $refresh_i3status"



суббота, сентября 21, 2024

OpenBSD ports maintainer cheat sheet

Here's the list of most important commands for an OpenBSD ports maintainer:

  • cd /usr/ports && cvs -z3 up -dP -A
  • doas pkg_add -Dsnap -uU
  • doas sysupgrade -s

and last but not least:

  •  doas vi /etc/myname

пятница, февраля 01, 2013

2012 Annual report


Уважаемые акционеры!

Позвольте представить отчёт о работе фонда за 2012 год.

За прошедший год инвестиционный фонд увеличился в два раза:
  • приток капитала составил 40% от стоимости активов фонда за 2011 год;
  • доходность фонда составила 26% годовых (для сравнения - за аналогичный период рост индекса ММВБ составил 5%).
Объекты инвестирования не претерпели изменений:
  • добыча и переработка нефти;
  • нефтехимическая промышленность;
  • коммуникации;
  • энергетика;
Желаю здоровья и процветания.

суббота, августа 11, 2012

Ministry. Moscow

I like Ministry, industrial metal.  Yesterday my friends and I are visited Ministry's concert in Moscow. Ministry are looks great, but I the sound was not so good.  The review of playlist found Psalm'69, New World Order and, my lovely, Just One Fix. Very good, but sound was too overloaded...

NetBSD 11.0-RC5