Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Sep 2004 13:43:33 +0400
From:      Vladimir Grebenschikov <vova@fbsd.ru>
To:        Toxa <postfix@sendmail.ru>
Cc:        freebsd-current@freebsd.org
Subject:   Re: acpi_video on SONY VAIO PCG-Z1 [was: acpi_video users needed]
Message-ID:  <1094031813.903.13.camel@localhost>
In-Reply-To: <20040901084349.GA1039@laptoxa.toxa.lan>
References:  <20040831131628.GA2156@laptoxa.toxa.lan> <200409010238.i812cv4K054209@sana.init-main.com> <20040901084349.GA1039@laptoxa.toxa.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2004-09-01 at 12:43 +0400, Toxa wrote:
> On Wed, Sep 01, 2004 at 11:38:57AM +0900, takawata@jp.freebsd.org wrote:
> 
> > I don't imagine why. But any other method in SNC may do something.
> > I modified the driver so that it exports more methods.
> > http://www.init-main.com/acpi_snc2.tar.gz
> 
> > Testers wanted.
> 
> acpi_snc0: <Sony notebook controller> on acpi0
> acpi_snc0: PID 0
> ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.SNC_.GCMI] (Node 0xc1a2b380), AE_AML_UNINITIALIZED_ARG
> ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.SNC_.GCMI] (Node 0xc1a2b380), AE_AML_UNINITIALIZED_ARG
> ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.SNC_.GCMI] (Node 0xc1a2b380), AE_AML_UNINITIALIZED_ARG
> ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.SNC_.GCMI] (Node 0xc1a2b380), AE_AML_UNINITIALIZED_ARG
> 
> [(12:40)(63.96%)(p0):~/tmp/acpi_snc ] sysctl -a|grep snc                       
> dev.acpi_snc.0.brightness: 100
> dev.acpi_snc.0.ctr: 0
> dev.acpi_snc.0.pcr: 24
> dev.acpi_snc.0.cmi: -1039508252
> dev.acpi_snc.0.wdp: 256
> dev.acpi_snc.0.cdp: 1
> dev.acpi_snc.0.%desc: Sony notebook controller
> dev.acpi_snc.0.%driver: acpi_snc
> dev.acpi_snc.0.%location: handle=\_SB_.PCI0.LPC0.SNC_
> dev.acpi_snc.0.%pnpinfo: _HID=SNY5001 _UID=0
> dev.acpi_snc.0.%parent: acpi0
> 
> [(12:43)(62.90%)(p0):~/tmp/acpi_snc ] sudo sysctl
> dev.acpi_snc.0.brightness=100
> dev.acpi_snc.0.brightness: 10 -> 100
> [(12:43)(62.90%)(p0):~/tmp/acpi_snc ] 
> 
> 
> sony vaio pcg-v505bx...

sony vzio pcg-z1aw

almost same:

# sysctl dev.acpi_snc
dev.acpi_snc.0.brightness: 98
dev.acpi_snc.0.ctr: 0
dev.acpi_snc.0.pcr: 0
dev.acpi_snc.0.cmi: -1044294180
dev.acpi_snc.0.wdp: 1281
dev.acpi_snc.0.cdp: 1
dev.acpi_snc.0.%desc: Sony notebook controller
dev.acpi_snc.0.%driver: acpi_snc
dev.acpi_snc.0.%location: handle=\_SB_.PCI0.LPCB.SNC_
dev.acpi_snc.0.%pnpinfo: _HID=SNY5001 _UID=0
dev.acpi_snc.0.%parent: acpi0
# 

dmesg message appears:
    ACPI-1303: *** Error: Method execution failed [\
\_SB_.PCI0.LPCB.SNC_.GCMI] (Node 0xc1a3a6a0), AE_AML_UNINITIALIZED_ARG


on each 
# sysctl dev.acpi_snc.0.cmi


# sysctl dev.acpi_snc.0.cdp=0
really turns CD drive off

value of 
dev.acpi_snc.0.brightness
change real brightness of screen but by very strange law:

# i=1; while [ $i -le 100 ]; do echo "try $i"; sysctl
dev.acpi_snc.0.brightness=$i; echo -n 'read value '; setbrightness --
read; i=$(($i+1)); done

try 1
dev.acpi_snc.0.brightness: 100 -> 1
read value 23
try 2
dev.acpi_snc.0.brightness: 1 -> 2
read value 35
try 3
dev.acpi_snc.0.brightness: 2 -> 3
read value 50
try 4
dev.acpi_snc.0.brightness: 3 -> 4
read value 70
try 5
dev.acpi_snc.0.brightness: 4 -> 5
read value 95
try 6
dev.acpi_snc.0.brightness: 5 -> 6
read value 125
try 7
dev.acpi_snc.0.brightness: 6 -> 7
read value 5
try 8
dev.acpi_snc.0.brightness: 7 -> 8
read value 255
try 9
dev.acpi_snc.0.brightness: 8 -> 9
read value 5
try 10
dev.acpi_snc.0.brightness: 9 -> 10
read value 13
try 11
dev.acpi_snc.0.brightness: 10 -> 11
read value 1
try 12
dev.acpi_snc.0.brightness: 11 -> 12
read value 6
try 13
dev.acpi_snc.0.brightness: 12 -> 13
read value 141
try 14
dev.acpi_snc.0.brightness: 13 -> 14
read value 54
try 15
dev.acpi_snc.0.brightness: 14 -> 15
read value 83
try 16
dev.acpi_snc.0.brightness: 15 -> 16
read value 57
try 17
dev.acpi_snc.0.brightness: 16 -> 17
read value 5
try 18
dev.acpi_snc.0.brightness: 17 -> 18
read value 138
try 19
dev.acpi_snc.0.brightness: 18 -> 19
read value 68
try 20
dev.acpi_snc.0.brightness: 19 -> 9
read value 5
try 21
dev.acpi_snc.0.brightness: 9 -> 17
read value 46
try 22
dev.acpi_snc.0.brightness: 17 -> 18
read value 138
try 23
dev.acpi_snc.0.brightness: 18 -> 23
read value 45
try 24
dev.acpi_snc.0.brightness: 23 -> 17
read value 46
try 25
dev.acpi_snc.0.brightness: 17 -> 18
read value 138
try 26
dev.acpi_snc.0.brightness: 18 -> 26
read value 92
try 27
dev.acpi_snc.0.brightness: 26 -> 27
read value 5
try 28
dev.acpi_snc.0.brightness: 27 -> 28
read value 195
try 29
dev.acpi_snc.0.brightness: 28 -> 29
read value 232
try 30
dev.acpi_snc.0.brightness: 29 -> 30
read value 237
try 31
dev.acpi_snc.0.brightness: 30 -> 8
read value 255
try 32
dev.acpi_snc.0.brightness: 8 -> 32
read value 203
try 33
dev.acpi_snc.0.brightness: 32 -> 0
read value 0
try 34
dev.acpi_snc.0.brightness: 0 -> 34
read value 188
try 35
dev.acpi_snc.0.brightness: 34 -> 16
read value 57
try 36
dev.acpi_snc.0.brightness: 16 -> 11
read value 1
try 37
dev.acpi_snc.0.brightness: 11 -> 28
read value 195
try 38
dev.acpi_snc.0.brightness: 28 -> 16
read value 57
try 39
dev.acpi_snc.0.brightness: 16 -> 27
read value 2
try 40
dev.acpi_snc.0.brightness: 27 -> 40
read value 220
try 41
dev.acpi_snc.0.brightness: 40 -> 16
read value 57
try 42
dev.acpi_snc.0.brightness: 16 -> 9
read value 5
try 43
dev.acpi_snc.0.brightness: 9 -> 43
read value 235
try 44
dev.acpi_snc.0.brightness: 43 -> 16
read value 57
try 45
dev.acpi_snc.0.brightness: 16 -> 45
read value 9
try 46
dev.acpi_snc.0.brightness: 45 -> 46
read value 45
try 47
dev.acpi_snc.0.brightness: 46 -> 47
read value 58
try 48
dev.acpi_snc.0.brightness: 47 -> 48
read value 10
try 49
dev.acpi_snc.0.brightness: 48 -> 49
read value 73
try 50
dev.acpi_snc.0.brightness: 49 -> 47
read value 58
try 51
dev.acpi_snc.0.brightness: 47 -> 51
read value 11
try 52
dev.acpi_snc.0.brightness: 51 -> 52
read value 107
try 53
dev.acpi_snc.0.brightness: 52 -> 47
read value 58
try 54
dev.acpi_snc.0.brightness: 47 -> 54
read value 61
try 55
dev.acpi_snc.0.brightness: 54 -> 55
read value 8
try 56
dev.acpi_snc.0.brightness: 55 -> 56
read value 78
try 57
dev.acpi_snc.0.brightness: 56 -> 57
read value 5
try 58
dev.acpi_snc.0.brightness: 57 -> 58
read value 33
try 59
dev.acpi_snc.0.brightness: 58 -> 59
read value 86
try 60
dev.acpi_snc.0.brightness: 59 -> 60
read value 190
try 61
dev.acpi_snc.0.brightness: 60 -> 61
read value 126
try 62
dev.acpi_snc.0.brightness: 61 -> 16
read value 57
try 63
dev.acpi_snc.0.brightness: 16 -> 17
read value 46
try 64
dev.acpi_snc.0.brightness: 17 -> 64
read value 56
try 65
dev.acpi_snc.0.brightness: 64 -> 65
read value 28
try 66
dev.acpi_snc.0.brightness: 65 -> 66
read value 116
try 67
dev.acpi_snc.0.brightness: 66 -> 67
read value 5
try 68
dev.acpi_snc.0.brightness: 67 -> 68
read value 131
try 69
dev.acpi_snc.0.brightness: 68 -> 69
read value 198
try 70
dev.acpi_snc.0.brightness: 69 -> 70
read value 3
try 71
dev.acpi_snc.0.brightness: 70 -> 71
read value 129
try 72
dev.acpi_snc.0.brightness: 71 -> 72
read value 254
try 73
dev.acpi_snc.0.brightness: 72 -> 73
read value 147
try 74
dev.acpi_snc.0.brightness: 73 -> 16
read value 57
try 75
dev.acpi_snc.0.brightness: 16 -> 57
read value 117
try 76
dev.acpi_snc.0.brightness: 57 -> 76
read value 242
try 77
dev.acpi_snc.0.brightness: 76 -> 77
read value 5
try 78
dev.acpi_snc.0.brightness: 77 -> 3
read value 50
try 79
dev.acpi_snc.0.brightness: 3 -> 79
read value 228
try 80
dev.acpi_snc.0.brightness: 79 -> 43
read value 235
try 81
dev.acpi_snc.0.brightness: 43 -> 45
read value 9
try 82
dev.acpi_snc.0.brightness: 45 -> 17
read value 46
try 83
dev.acpi_snc.0.brightness: 17 -> 8
read value 255
try 84
dev.acpi_snc.0.brightness: 8 -> 84
read value 84
try 85
dev.acpi_snc.0.brightness: 84 -> 11 
read value 1
try 86
dev.acpi_snc.0.brightness: 11 -> 77
read value 94
try 87
dev.acpi_snc.0.brightness: 77 -> 87
read value 5
try 88
dev.acpi_snc.0.brightness: 87 -> 27
read value 2
try 89
dev.acpi_snc.0.brightness: 27 -> 3
read value 50
try 90
dev.acpi_snc.0.brightness: 3 -> 90
read value 192
try 91
dev.acpi_snc.0.brightness: 90 -> 91
read value 207
try 92
dev.acpi_snc.0.brightness: 91 -> 92
read value 233
try 93
dev.acpi_snc.0.brightness: 92 -> 93
read value 202
try 94
dev.acpi_snc.0.brightness: 93 -> 94
read value 25
try 95
dev.acpi_snc.0.brightness: 94 -> 29
read value 232
try 96
dev.acpi_snc.0.brightness: 29 -> 96
read value 171
try 97
dev.acpi_snc.0.brightness: 96 -> 8
read value 5
try 98
dev.acpi_snc.0.brightness: 8 -> 98
read value 180
try 99
dev.acpi_snc.0.brightness: 98 -> 56
read value 78
try 100
dev.acpi_snc.0.brightness: 56 -> 100
read value 248

Real display brightness changed according "read value %d", so while this
operations screen brightness was jumping.

Playing with other values gives not result.

-- 
Vladimir B. Grebenchikov
vova@fbsd.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1094031813.903.13.camel>