From owner-freebsd-questions@FreeBSD.ORG Thu May 21 13:02:18 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CEE0830A for ; Thu, 21 May 2015 13:02:18 +0000 (UTC) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 971A51979 for ; Thu, 21 May 2015 13:02:18 +0000 (UTC) Received: by igcau1 with SMTP id au1so7757427igc.1 for ; Thu, 21 May 2015 06:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=52IsJ23/yLHfnZX4Z5REhEymgAgP3AfU10YtchpHTDI=; b=BxtBgRfIxNjI1nGpyUieb45BBgHvyK0YEXEzN3sH4NsAthdq3hCYhVpceY1mVGD3la tq+Gf06NCQH1wEtW4FPDIZ3rToA0wmoUPaPR2AF7mZkgeQqeYcmydmsIqqIOgcWSzvLj f7cqNzHiI+NiiWghISkkJ/0wwGZ48djxnhl9wp5GJdjUJAiVeaz6mfP0YXP4Z/Xx4nPM 9gYjVbC0Qr23J6C6EyDBKnAFlJicZcRQwd70EnWTwJc6sp+tbeskkx9Wh5j7lzUBMfR3 YS6r5cMOC58iC2wPaelBbKsDPOUR6tHVwMjU0xmJ/logjK1ziU2O0gNXT7n3+gHshjWp zFqQ== X-Received: by 10.50.59.211 with SMTP id b19mr34173106igr.42.1432213338062; Thu, 21 May 2015 06:02:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.121.1 with HTTP; Thu, 21 May 2015 06:01:57 -0700 (PDT) In-Reply-To: <20150521143734.91ac3a30.freebsd@edvax.de> References: <20150521140123.a18aadc2.freebsd@edvax.de> <20150521143734.91ac3a30.freebsd@edvax.de> From: Avinash Sonawane Date: Thu, 21 May 2015 18:31:57 +0530 Message-ID: Subject: Re: Brightness control in FreeBSD 10.1-RELEASE To: Polytropon Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2015 13:02:18 -0000 On Thu, May 21, 2015 at 6:07 PM, Polytropon wrote: > This is only for one of the keys (code 133), what about the > other one? For other one I got same never ending loop. I guess these are the relevant specifics: KeyRelease event, serial 37, synthetic NO, window 0x1e00001, root 0x2b9, subw 0x0, time 3656195, (96,113), root:(690,436), state 0x10, keycode 134 (keysym 0xffae, KP_Decimal), same_screen YES, XLookupString gives 1 bytes: (2e) "." XFilterEvent returns: False KeyPress event, serial 37, synthetic NO, window 0x1e00001, root 0x2b9, subw 0x0, time 3656195, (96,113), root:(690,436), state 0x10, keycode 134 (keysym 0xffae, KP_Decimal), same_screen YES, XLookupString gives 1 bytes: (2e) "." XmbLookupString gives 1 bytes: (2e) "." XFilterEvent returns: False > If you find a way to modify screen brightness using a command, > you can use xmodmap and xbindkeys to connect that command to > a keypress of that key. I guess that'll work. I am looking at `man acpi_video` which talks about sysctling brightness variables. -- Avinash Sonawane (RootKea) PICT, Pune http://rootkea.wordpress.com