ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Olexander Chernetskyy" <sp_archer@meta.ua>
To: "ALT Linux Community general discussions" <community@lists.altlinux.org>
Subject: Re: [Comm] Три вопроса:
Date: Mon, 05 Oct 2009 19:39:39 +0300 (EEST)
Message-ID: <46190.195.230.140.18.1254760779.metamail@webmail.meta.ua> (raw)
In-Reply-To: <b69263ea0910050054jc6e1ae1u8b8dd64958914dd0@mail.gmail.com>


>
> 2. На нотике последний предрелиз (Ковчег) ведёт себя с дисплеем как-то
> странно. То выставляет ему максимальную яркость, например, после
> минимальной
> выставленной биосом, то минимальную, после максимайльной выставленной тем
> же
> биосом. такое впечатление, что он просто обращает текущее значение. Есть
> некая программулина во Гноме, с помощью которой можно управлять яркостью,
> но
> запускать её каждый раз после загрузки системы не с руки. Как управлять
> яркостью, или лучше выставить её в определённое значение во время
> загрузки?
>
>
> Павел

Или я что-то пропустил или про управление яркостью никто ничего не сказал.
Вообще-то у меня не ноут, просто монитор находится на расстоянии больше
вытянутой руки. И когда мне надоело отрывать зад от кресла, чтобы
подрегулировать яркость/контрастность я сделал такой вот скрипт и ярлык
повесил на десктоп.
-------------------------------------------------------------------------------
#/bin/sh
DIALOG=${DIALOG=kdialog}

if [ ! -c /dev/i2c-2 ]
  then
  sudo /sbin/modprobe i2c-dev
  sleep 1
  sudo /bin/chmod a+rw /dev/i2c-2
fi

choice=`$DIALOG  \
        --combobox "Ставим Яркость-Контрастность экрана" \
        "20-20" "30-30" "40-40" "50-50" \
        "60-50" "70-50" "80-50"`
retval=$?

if [ "$retval" = "1" ]
 then exit
fi

case $choice in
        "20-20")
               sudo ddccontrol  -r 0x10 -w 20 dev:/dev/i2c-2 >/dev/null 2>&1
               sudo ddccontrol  -r 0x12 -w 20 dev:/dev/i2c-2 >/dev/null
2>&1;;
        "30-30")
               sudo ddccontrol  -r 0x10 -w 30 dev:/dev/i2c-2 >/dev/null 2>&1
               sudo ddccontrol  -r 0x12 -w 30 dev:/dev/i2c-2 >/dev/null
2>&1;;
        "40-40")
               sudo ddccontrol  -r 0x10 -w 40 dev:/dev/i2c-2 >/dev/null 2>&1
               sudo ddccontrol  -r 0x12 -w 40 dev:/dev/i2c-2 >/dev/null
2>&1;;
        "50-50")
               sudo ddccontrol  -r 0x10 -w 50 dev:/dev/i2c-2 >/dev/null 2>&1
               sudo ddccontrol  -r 0x12 -w 50 dev:/dev/i2c-2 >/dev/null
2>&1;;
        "60-50")
               sudo ddccontrol  -r 0x10 -w 60 dev:/dev/i2c-2 >/dev/null 2>&1
               sudo ddccontrol  -r 0x12 -w 50 dev:/dev/i2c-2 >/dev/null
2>&1;;
        "70-50")
               sudo ddccontrol  -r 0x10 -w 70 dev:/dev/i2c-2 >/dev/null 2>&1
               sudo ddccontrol  -r 0x12 -w 50 dev:/dev/i2c-2 >/dev/null
2>&1;;
        "80-50")
               sudo ddccontrol  -r 0x10 -w 80 dev:/dev/i2c-2 >/dev/null 2>&1
               sudo ddccontrol  -r 0x12 -w 50 dev:/dev/i2c-2 >/dev/null
2>&1;;
esac
-------------------------------------------------------------------------------
Только, пожалуйста, не нужно тыкать меня харей, что это неправильно, криво
и т.д. Скрипт писАлся методом научного тыка, как сумел так и сделал. Меня
он устраивает, может и кому-то еще поможет.

-- 
Best regards,
ArCher




      parent reply	other threads:[~2009-10-05 16:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-05  9:20 ` Andriy Dobrovol`s`kii
2009-10-05  9:46     ` Andriy Dobrovol`s`kii
2009-10-05 10:00       ` Yadykin Alexander
2009-10-05 16:39 ` Olexander Chernetskyy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46190.195.230.140.18.1254760779.metamail@webmail.meta.ua \
    --to=sp_archer@meta.ua \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git