← Back to team overview

kernel-packages team mailing list archive

[Bug 935778] Re: Toshiba Tecra R840 - brightness controls work on first boot, but do nothing after suspend/resume

 

Hi, I improved the /etc/udev/rules.d/tosh-backlight.sh script as
presented in
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/935778/comments/68,
this script avoids the no-backlight at all issue and sets the brightness
using a quadratic function (it works much better in my Z830 where the
lower brightness jumps are very big).

#!/bin/sh
acpi_max=$(cat /sys/class/backlight/toshiba/max_brightness)
acpi_curr=$(cat /sys/class/backlight/toshiba/brightness)
intel_max=$(cat /sys/class/backlight/intel_backlight/max_brightness)
intel_min=100 # What we want the brightness 0 to be
# Linear
#intel_curr=$((($intel_max-$intel_min)/$acpi_max*$acpi_curr+$intel_min))
# Cuadratic
intel_curr=$(echo "scale=10; ($intel_max-$intel_min)/($acpi_max^2)*$acpi_curr^2+$intel_min" | bc | cut -d. -f1)
echo $intel_curr > /sys/class/backlight/intel_backlight/brightness

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/935778

Title:
  Toshiba Tecra R840 - brightness controls work on first boot, but do
  nothing after suspend/resume

Status in The Linux Kernel:
  Confirmed
Status in “linux” package in Ubuntu:
  Incomplete
Status in Debian GNU/Linux:
  Confirmed
Status in Fedora:
  Unknown
Status in openSUSE:
  Confirmed

Bug description:
  Overview -

  This bug affects many Toshiba laptops including R700, R705, R800,
  R830, R835, R840, R850, Z930 models - please update this description
  if your model is also affected, but make sure the symptoms match
  exactly.

  The symptoms are that brightness control operates normally when the
  system is first booted, but after a suspend-to-RAM and resume cycle
  the brightness controls have no effect.

  After a normal reboot, or hibernate & resume cycle, the brightness
  controls operate normally again.

  This bug is tracked for the kernel at:

  http://bugzilla.kernel.org/show_bug.cgi?id=21012

  And for Debian at:

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599768

  Please try to keep all info together and pass any progress to the
  upstream trackers.

  Original report for #935778 follows:

  On my Toshiba R840, the brightness controls work fine on first boot,
  but do nothing after suspend/resume.  This is particularly frustrating
  if I suspend with the screen at all dimmed, because once I resume, I
  have no way of increasing the brightness short of a reboot.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: linux-image-generic 3.2.0.16.16
  ProcVersionSignature: Ubuntu 3.2.0-16.25-generic 3.2.6
  Uname: Linux 3.2.0-16-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
  ApportVersion: 1.91-0ubuntu1
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  james      2251 F.... pulseaudio
   /dev/snd/pcmC0D0p:   james      2251 F...m pulseaudio
  CRDA:
   country EU:
    (2402 - 2482 @ 40), (N/A, 20)
    (5170 - 5250 @ 40), (N/A, 20)
    (5250 - 5330 @ 40), (N/A, 20), DFS
    (5490 - 5710 @ 40), (N/A, 27), DFS
  Card0.Amixer.info:
   Card hw:0 'PCH'/'HDA Intel PCH at 0xc4820000 irq 50'
     Mixer name	: 'Intel CougarPoint HDMI'
     Components	: 'HDA:10ec0269,1179062a,00100100 HDA:80862805,11790001,00100000'
     Controls      : 30
     Simple ctrls  : 12
  Date: Sat Feb 18 21:27:12 2012
  EcryptfsInUse: Yes
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
  MachineType: TOSHIBA TECRA R840
  ProcEnviron:
   LANGUAGE=en_GB:en
   PATH=(custom, no user)
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-16-generic root=UUID=16b08eff-30c4-4fe0-bede-cf8cb31270bf ro quiet splash vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-3.2.0-16-generic N/A
   linux-backports-modules-3.2.0-16-generic  N/A
   linux-firmware                            1.69
  RfKill:
   0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
  SourcePackage: linux
  StagingDrivers: mei
  UpgradeStatus: Upgraded to precise on 2012-01-09 (39 days ago)
  dmi.bios.date: 07/12/2011
  dmi.bios.vendor: TOSHIBA
  dmi.bios.version: Version 2.90
  dmi.board.asset.tag: 0000000000
  dmi.board.name: Portable PC
  dmi.board.vendor: TOSHIBA
  dmi.board.version: Version A0
  dmi.chassis.asset.tag: 0000000000
  dmi.chassis.type: 10
  dmi.chassis.vendor: TOSHIBA
  dmi.chassis.version: Version 1.0
  dmi.modalias: dmi:bvnTOSHIBA:bvrVersion2.90:bd07/12/2011:svnTOSHIBA:pnTECRAR840:pvrPT42GE-00N006EN:rvnTOSHIBA:rnPortablePC:rvrVersionA0:cvnTOSHIBA:ct10:cvrVersion1.0:
  dmi.product.name: TECRA R840
  dmi.product.version: PT42GE-00N006EN
  dmi.sys.vendor: TOSHIBA

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/935778/+subscriptions