NetBSD 11.0-RC5
# sysupgrade auto https://cdn.netbsd.org/pub/NetBSD/NetBSD-11.0_RC5/amd64/
This blog dedicate to Markets and Informational Technology. The languages are English and Russian.
NetBSD 11.0-RC5
# sysupgrade auto https://cdn.netbsd.org/pub/NetBSD/NetBSD-11.0_RC5/amd64/
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
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"
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"
Here's the list of most important commands for an OpenBSD ports maintainer:
and last but not least:
![]() |
| Рисунок 1. Июньский контракт на медь, NYMEX. Источник - ino.com |
![]() |
| Рисунок 1. Сравнительная динамика российского рубля, бразильского реала и индийской рупии. |
![]() |
| MICEX Index, 20.03.2012. |
![]() |
| Стоимость нефти сорта Brent за последний год. |
# cd /usr/ports/www/nginx && make config# make build install clean# cd /usr/ports/www/rubygem-passenger && make config# make build install clean/etc/rc.conf:nginx_enable="YES"nginx.conf and put it into /usr/local/etc/nginx directory.worker_process 1;
events { worker_connections 1024;}
http { include mime.types; default_type application/octet-stream;
sendfile on;
passenger_root /usr/local/lib/ruby/gems/1.9/gems/passenger-3.0.11; passenger_ruby /usr/local/bin/ruby; passenger_default_user www;
server { listen 127.0.0.1:80; server_name localhost;
root /usr/local/lib/ruby/gems/1.9/gems/passenger-3.0.11/test/stub/rack/public; passenger_enabled on; passenger_use_global_queue on; }}# /usr/local/etc/rc.d/nginx start$ telnet 127.0.0.1 80GET / HTTP/1.0
HTTP/1.1 200 OKContent-Type: text/htmlConnection: closeStatus: 200X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.11Server: nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
hello worldConnection close by foreign host.% ps auxww | grep -i passenger
root 72784 0,0 0,1 28112 2932 ?? Is 12:25 0:00,01 PassengerWatchdog
root 72786 0,0 0,1 51704 5224 ?? I 12:25 0:00,04 PassengerHelperAgent
root 72790 0,0 0,2 51924 9764 ?? I 12:25 0:00,06 ruby: Passenger spawn server (ruby)
nobody 72791 0,0 0,1 32476 4500 ?? I 12:25 0:00,01 PassengerLoggingAgent
www 72807 0,0 0,3 56040 11124 ?? I 12:26 0:00,03 ruby: Passenger ApplicationSpawner: /usr/local/lib/ruby/gems/1.9/gems/passenger-3.0.11/test/stub/rack (ruby)
www 72809 0,0 0,3 56064 11180 ?? I 12:26 0:00,00 ruby: Rack: /usr/local/lib/ruby/gems/1.9/gems/passenger-3.0.11/test/stub/rack (ruby)
% more /var/run/dmesg.boot | grep ugen | grep Chiconymultimedia/webcam, который установит multimedia/cuse4bsd. Ганс Петтер Селаски потрудился на славу: загрузка cuse4bsd.ko, рестарт /etc/rc.d/devd, и pwcview показывает автопортрет. # echo "webcamd_enable=\"YES\"" >> /etc/rc.conf# echo "cuse4bsd_load=\"YES\"" >> /boot/loader.conf/dev/video0, на, не побоюсь этого слова, 666, добавляем себя в группу webcamd, перезапускаем skype. Всё работает! acpi_ibm(4).+++ /sys/dev/acpi_support/acpi_ibm.c 2011-10-31 20:39:54.000000000 +0400@@ -290,7 +298,7 @@ DRIVER_MODULE(acpi_ibm, acpi, acpi_ibm_driver, acpi_ibm_devclass, 0, 0); MODULE_DEPEND(acpi_ibm, acpi, 1, 1, 1);-static char *ibm_ids[] = {"IBM0068", NULL};+static char *ibm_ids[] = {"IBM0068", "LEN0068", NULL}; static void ibm_led(void *softc, int onoff)
acpi_ibm.ko и последующей загрузки модуля получаем:acpi_ibm0: on acpi0 # pkg_add -r xorg# Xorg -configure# mkdir /usr/src# mkdir /etc/csup# cat /usr/share/examples/cvsup/stable-supfile | grep -v ^# | sed 's/RELENG_8/RELENG_9/g; s/CHANGE_THIS/cvsup2.ru/g' > /etc/csup/stable-supfile# cd /usr/src# csup -g -L 2 /etc/csup/stable-supfile# cd /usr/src && patch -p1 < all.10.3.patch# make KERNCONF=GENERIC buildkernel installkernel# svn co https://trillian.chruetertee.ch/svn/ports/branches/xorg-devhald_enable="YES"dbus_enable="YES"% cat /usr/local/etc/hal/fdi/policy/x11-input.fdi# reboot![]() |
| Ноябрьский фьючерсный контракт на медь (NYMEX). |
![]() |
| Фьючерс на медь, ноябрь 2011. |
![]() |
| Движение цены нефти сорта Брент в канале. |