From owner-freebsd-x11@freebsd.org Wed Sep 28 06:18:20 2016 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6A298BEC020 for ; Wed, 28 Sep 2016 06:18:20 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-io0-x22c.google.com (mail-io0-x22c.google.com [IPv6:2607:f8b0:4001:c06::22c]) (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 301F6206 for ; Wed, 28 Sep 2016 06:18:20 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-io0-x22c.google.com with SMTP id 92so39216885iol.2 for ; Tue, 27 Sep 2016 23:18:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=7dnZhLdyLR6DmpTcMJrB8R1A3G5ZO7iebgJjU8tkgsg=; b=BePHAeATtKSnqBxBobBmdH/VgSvbLH/src44DqJqPGHgqTAHm8inCHelGD/dTThw6a hNLV4VeDkL0kDbui3wysFJB9v8R8nmdOYAPWc3c1P4yh3OTlYBH9fZe/kkBAMRmPNic2 nVBZhOKyWryHz/qfQMaOJgwoLtHL6K/q4TpBpYd2YK8eU1f5jDZnOTUgik6vDPpW7gU8 kWFw2+5xsM9+6KBbMl+rUbZKpehE+Pc9e/J5jxaLSgRiR4NEu6Gxl1SzdfOqELQGkm4D t3T2X7PgbA0Y7A+vX3UmHjIFoThc3c8/dFdgWRpXmgCpJ4FibKu9bZ9xCDcln+Cqnw41 pCfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=7dnZhLdyLR6DmpTcMJrB8R1A3G5ZO7iebgJjU8tkgsg=; b=bbbUfdV2zTSW4VujaT0oGr8v3AW/lfjTO9xF4VjzF7SnbkZNCN3/xCboxIdma7iSt3 dK1HzPEVKTRq7nmp61nN8/zveVxMvSQNwqtaxP1VBK1yzDeLIN2nwlq6R90cjyrST5YX QIxMoiXpiaq5WzL4WrfELus30ZGXG+U9e/vqqMxKFKciRul5u3VVGV/JvyrHh1RxxEuy JbaoVOKG9XwjG1w5dbZgj6kNH4vmdia432j9st/dDEHRcIlUnRu93eryc2IMUoWX+wqe qLrvdEPWTlrPc4kqH9RbqGcRIYYF/TR8dWakaF8w2LZ2nyEjofnDE69+kMmIkFNlU/3q wQRg== X-Gm-Message-State: AE9vXwNKqHO5/5O+GspdF0TtOqjS2LcpBlrSpPPubOdRGbNB+51JlZS0ySGeDLDcWtHuMidmvOGzN+3zfGq7fQ== X-Received: by 10.107.147.69 with SMTP id v66mr33024475iod.63.1475043499173; Tue, 27 Sep 2016 23:18:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.161.66 with HTTP; Tue, 27 Sep 2016 23:18:18 -0700 (PDT) From: blubee blubeeme Date: Wed, 28 Sep 2016 14:18:18 +0800 Message-ID: Subject: Nvidia drivers screen brightness and back light To: x11-list freebsd Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 06:18:20 -0000 Hi I am trying to tune this device a bit to be able to control the back light / screen brightness of the screen. Here's the info on my GPU vgapci0@pci0:1:0:0: class=0x030000 card=0x0130106b chip=0x0fe910de rev=0xa1 hdr=0x00 vendor = 'NVIDIA Corporation' device = 'GK107M [GeForce GT 750M Mac Edition]' class = display subclass = VGA cap 01[60] = powerspec 3 supports D0 D3 current D0 cap 05[68] = MSI supports 1 message, 64 bit enabled with 1 message cap 10[78] = PCI-Express 2 endpoint max data 256(256) RO NS link x8(x16) speed 8.0(8.0) ASPM L0s/L1(L0s/L1) cap 09[b4] = vendor (length 20) ecap 0002[100] = VC 1 max VC0 ecap 0004[128] = Power Budgeting 1 ecap 0001[420] = AER 2 0 fatal 0 non-fatal 0 corrected ecap 000b[600] = Vendor 1 ID 1 ecap 0019[900] = PCIe Sec 1 lane errors 0 Here is the acpi information for this machine : http://paste2.org/LUcIwtzn I came from running linux and typically there's a video or some acpi settings that will control the brightness of the screen but on FreeBSD, there doesn't seem to be anything like this so my monitor is constantly at 100% brightness. Shouldn't there be some way to dim the brightness through the acpi interface? Can I get some support to be able to dim the screen brightness? Here is the output of my xorg.conf # nvidia-xconfig: X configuration file generated by nvidia-xconfig # nvidia-xconfig: version 367.35 Wed Sep 7 17:03:49 CST 2016 Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" EndSection Section "Files" EndSection Section "InputDevice" # generated from default Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/sysmouse" Option "Emulate3Buttons" "no" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" # generated from default Identifier "Keyboard0" Driver "keyboard" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Unknown" ModelName "Unknown" HorizSync 28.0 - 33.0 VertRefresh 43.0 - 72.0 Option "DPMS" EndSection Section "Device" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" EndSection Section "Screen" Identifier "Screen0" Device "Device0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 24 EndSubSection EndSection I use redshift and passing redshift -t x:x -b[0.0-1.0] allows some brightness controls but then xrandr has to warm up and go from a cool color screen to a warmer color then it adjusts the brightness. There's also xrandr --ouput ACTIVE_DEVICE -brightness [0.0-1.0] this seems to work but it won't work while redshift is working. They seem to fight for control of the display then redshift takes control and the screen goes back to somewhat full brightness. Is there a more efficient way to control the screen brightness?