| Autor | Sõnum | 
| jokkerjoss Pingviini külastaja
 
  
 
 
 Liitunud: 07.07.2008
 Postitused: 19
 
 
 
  
   |  
 
 
| 
| 
 |  
| Sony VAYO PCG-K23 
 Vaatasin ning avastasin, et fail /etc/hosts sisaldab jyrgnevat infot
 
 127.0.0.1 localhost
 127.0.1.1 mm-laptop.elion.ee
 
 # The following lines are desirable for IPv6 capable hosts
 ::1 ip6-localhost ip6-loopback
 fe00::0 ip6-localnet
 ff00::0 ip6-mcastprefix
 ff02::1 ip6-allnodes
 ff02::2 ip6-allrouters
 ff02::3 ip6-allhosts
 
 Samuti sisestasin terminali uued kysud.
 
 mm@mm-laptop:~$ sudo spicctrl -b 5.79
 sudo: unable to resolve host mm-laptop
 [sudo] password for mm:
 mm@mm-laptop:~$ hostname
 mm-laptop
 mm@mm-laptop:~$ sudo spicctrl -B
 sudo: unable to resolve host mm-laptop
 5
 mm@mm-laptop:~$
 
 Ikka veel ei midagi, pilt on ikka endiselt tume.
 |  
|  |  |  |  
| 
 
 |  | 
|  |   | 
| Sisyphos Vana Pingviin
 
  
  
 Vanus: 62
 Liitunud: 24.02.2008
 Postitused: 602
 
 Distributsioon: Slackware
 
  
   |  
 
 
| 
| 
 |  
|  	  | Tsitaat: |  	  | 
 127.0.0.1 localhost
 127.0.1.1 mm-laptop
 .elion.ee | 
 eemalda .elion.ee osa /etc/hosts  failist ja vaata kas sudo hakkab tööle.
 |  
|  |  |  |  
| _________________
 
   
 |  | 
|  |   | 
| jokkerjoss Pingviini külastaja
 
  
 
 
 Liitunud: 07.07.2008
 Postitused: 19
 
 
 
  
   |  
 
 
| 
| 
 |  
| Lyksin: Computer> Failsystem>Etc>Hosts ning ning kustutasin elion.ee kuid kui proovisin faili alt  savida- teatas message, et:
 
 Could not save the file /etc/hosts.
 You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again.
 
 Kas peab ja kudas seda teha terminalist vyi on midagi endiselt puudu?
 |  
|  |  |  |  
| 
 
 |  | 
|  |   | 
| jokkerjoss Pingviini külastaja
 
  
 
 
 Liitunud: 07.07.2008
 Postitused: 19
 
 
 
  
   |  
 
 
| 
| 
 |  
| Ise leidsin Ubuntu rahvusvahelisest foorumist sellise artikli kuid ise kallale ei julge veel minnna kuna puuduvad piisavad teadmised kuid failide seisu kohalt paistab kyik sobivat: 
 Wink  Re: Sony VAIO FZ brightness WORKS!
 I've managed to find a solution to the function keys not working unless you restarted acpi on my FZ11.
 I used information on a Suse Forum http://forums.opensuse.org/hardware/...w-working.html by philipraets's so all credit is to him.
 
 Insert this into /etc/acpi/events/sony-brightness-up
 Code:
 
 # /etc/acpi/events/sony-brightness-up
 event=sony/hotkey SNC 00000001 00000011
 action=/etc/acpi/sonybright.sh up
 
 Insert this into /etc/acpi/events/sony-brightness-down
 Code:
 
 # /etc/acpi/events/sony-brightness-down
 event=sony/hotkey SNC 00000001 00000010
 action=/etc/acpi/sonybright.sh down
 
 Insert this into /etc/acpi/sonybright.sh
 Code:
 
 #!/bin/bash
 if [ "x$1" = "xdown" ]; then
 # xbacklight -steps 10 -dec 10 2>/tmp/sonybright.log
 nvclock -S -15
 elif [ "x$1" = "xup" ]; then
 # xbacklight -steps 10 -inc 10 2>/tmp/sonybright.log
 nvclock -S +15
 elif [ "x$1" = "xdim" ]; then
 # xbacklight -steps 10 -inc 10 2>/tmp/sonybright.log
 nvclock -S 15
 elif [ "x$1" = "xbright" ]; then
 # xbacklight -steps 10 -inc 10 2>/tmp/sonybright.log
 nvclock -S 100
 else
 echo >&2 Unknown argument $1
 fi
 
 Then run
 Code:
 
 sudo chmod +x sony-brightness-up
 sudo chmod +x sony-brightness-down
 sudo chmod +x sonybright.sh
 
 Restart ACPI by
 Code:
 
 sudo /etc/init.d/acpid restart
 
 Now the function keys should be ok
 
 Still can't get the backlight to dim on power loss...
 
 Oh well,
 Hope that helps
 
 Ehk on sellest veidi abi mynele kogemustega tegijale kes oskaks yigele teele juhatada.
 Muidugi kyib jutt siin artiklis mudelist Vaio FZ11.kuid minul on PCG-K23
 |  
|  |  |  |  
| 
 
 |  | 
|  |   | 
| Sisyphos Vana Pingviin
 
  
  
 Vanus: 62
 Liitunud: 24.02.2008
 Postitused: 602
 
 Distributsioon: Slackware
 
  
   |  
 
 
| 
| 
 |  
|  	  | jokkerjoss kirjutas: |  	  | Lyksin:
Computer> Failsystem>Etc>Hosts ning ning kustutasin elion.ee kuid kui proovisin faili alt  savida- teatas message, et:
 
 Could not save the file /etc/hosts.
 You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again.
 
 Kas peab ja kudas seda teha terminalist vyi on midagi endiselt puudu?
 | 
 Süsteemi faile saab muuta ainult juurkasutaja.
 
 
  	  | Kood: |  	  | sudo <sinu_lemmilk_editor_siia> /etc/hosts			 | 
 |  
|  |  |  |  
| _________________
 
   
 |  | 
|  |   | 
| jokkerjoss Pingviini külastaja
 
  
 
 
 Liitunud: 07.07.2008
 Postitused: 19
 
 
 
  
   |  
 
 
| 
| 
 |  
| Muutsin selle yra 
 mm@mm-laptop:~$ sudo gedit /etc/hosts
 
 Salvestasin ning uus fail on selline;
 
 127.0.0.1 localhost
 127.0.1.1 mm-laptop
 
 # The following lines are desirable for IPv6 capable hosts
 ::1 ip6-localhost ip6-loopback
 fe00::0 ip6-localnet
 ff00::0 ip6-mcastprefix
 ff02::1 ip6-allnodes
 ff02::2 ip6-allrouters
 ff02::3 ip6-allhosts
 
 Mis vyiks nyyd olla jyrgmine lahenduskyik?
 |  
|  |  |  |  
| 
 
 |  | 
|  |   | 
| jokkerjoss Pingviini külastaja
 
  
 
 
 Liitunud: 07.07.2008
 Postitused: 19
 
 
 
  
   |  
 
 
| 
| 
 |  
| Samuti prrovisin lybi ACPI-SUPPORT paki uuenduse ja SCCTRL-i programmi kuid ikka ei midagi; 
 mm@mm-laptop:~$ sudo dpkg -S /etc/acpi/events/sony-brightness-down
 [sudo] password for mm:
 acpi-support: /etc/acpi/events/sony-brightness-down
 mm@mm-laptop:~$ sudo dpkg-reconfigure acpi-support
 * Disabling power management...                                         [ OK ]
 * Checking battery state...
 /dev/hda:
 setting Advanced Power Management level to 0xfe (254)
 [ OK ]
 mm@mm-laptop:~$ sudo spicctrl -B
 5
 mm@mm-laptop:~$ sudo spicctrl -b 100
 mm@mm-laptop:~$ sudo spicctrl -B
 100
 mm@mm-laptop:~$
 
 Jauran juba nydal aega ja ikka ei miskit.
 |  
|  |  |  |  
| 
 
 |  | 
|  |   | 
| Sisyphos Vana Pingviin
 
  
  
 Vanus: 62
 Liitunud: 24.02.2008
 Postitused: 602
 
 Distributsioon: Slackware
 
  
   |  
 
 
| 
| 
 |  
| Vähemalt sudo said tööle. 
 Võiksid ju proovida enda leitud lahendust ühe teise Sony Vaio mdeli kohta.
 
 Ja kui see ei aita  ja keegi teine ka ei aita, siis oleks mõistlik teha puhas install (mitte upgrade nagu sina tegid)  .
 |  
|  |  |  |  
| _________________
 
   
 |  | 
|  |   | 
| jokkerjoss Pingviini külastaja
 
  
 
 
 Liitunud: 07.07.2008
 Postitused: 19
 
 
 
  
   |  
 
 
| 
| 
 |  
| Mida see puhas install endast kujutab, sest CD-d mul pole ja seega saan kasutada ainult neti pyhist allalaadimist. Muideks seda reklaamiti ka , et vana esamalt yra kustutada ja uus peale laadida. Kes vyiks selle taolist infot anda? |  
|  |  |  |  
| 
 
 |  | 
|  |   | 
| Mikk Pingviini kasutaja
 
  
  
 Vanus: 31
 Liitunud: 03.10.2008
 Postitused: 52
 Asukoht: Rakvere
 Distributsioon: Ubuntu Hardy
 
  
   |  
 
 
| 
| 
 |  
|  	  | jokkerjoss kirjutas: |  	  | Mida see puhas install endast kujutab, sest CD-d mul pole ja seega saan kasutada ainult neti pyhist allalaadimist. Muideks seda reklaamiti ka , et vana esamalt yra kustutada ja uus peale laadida. Kes vyiks selle taolist infot anda?			 | 
 
 Lähed Ubuntu lehele ja tõmbad sealt omale sobiva Ubuntu versiooni .iso faili. Selle kirjutad omakorda tühjale CDle, viskad lugejasse ja teed restardi.
 Võibolla pead BIOSe seadeid muutma, et ta CDlt buudiks. Edasi juhatab sind LiveCD ise.
 |  
|  |  |  |  
| 
 
 |  | 
|  |    | 
| jokkerjoss Pingviini külastaja
 
  
 
 
 Liitunud: 07.07.2008
 Postitused: 19
 
 
 
  
   |  
 
 
| 
| 
 |  
| Sai siis paigaldatud versioon Ubuntu 9.04 otse CD-lt kuid tolku ei midagi. Pilt on ikka tume. Samuti proovisin ka läbi terminali erinevaid käske , aga samuti tulemusteta. 
 jokkerjoss@jokkerjoss:~$ spicctrl -B
 /dev/sonypi: No such file or directory
 jokkerjoss@jokkerjoss:~$ sudo ls -l /etc/acpi/events/sony
 [sudo] password for jokkerjoss:
 ls: cannot access /etc/acpi/events/sony: No such file or directory
 jokkerjoss@jokkerjoss:~$ cat /var/log/acpid
 cat: /var/log/acpid: No such file or directory
 jokkerjoss@jokkerjoss:~$
 
 Mida edasi, on kellegil ideid?
 |  
|  |  |  |  
| 
 
 |  | 
|  |   | 
| sander85 Vana Pingviin
 
  
  
 Vanus: 40
 Liitunud: 08.08.2005
 Postitused: 4359
 Asukoht: Tallinn (vahel ka Virtsu)
 Distributsioon: Mageia, Debian, CentOS
 
  
   |  | 
|  |    | 
| jokkerjoss Pingviini külastaja
 
  
 
 
 Liitunud: 07.07.2008
 Postitused: 19
 
 
 
  
   |  
 
 
| 
| 
 |  
| Missugused on siis näiteks Mandriiva eelistused Ubuntu ees? Samuti on fakt see, et Ubuntu 7.10 peal oli valgustus olemas, muidugi FN klahv ei töödanud kuid see oli köömes praeguste silmade tapmise juures. 
 On kellegil veel ideid?
 |  
|  |  |  |  
| 
 
 |  | 
|  |   | 
| sander85 Vana Pingviin
 
  
  
 Vanus: 40
 Liitunud: 08.08.2005
 Postitused: 4359
 Asukoht: Tallinn (vahel ka Virtsu)
 Distributsioon: Mageia, Debian, CentOS
 
  
   |  | 
|  |    | 
| Mikk Pingviini kasutaja
 
  
  
 Vanus: 31
 Liitunud: 03.10.2008
 Postitused: 52
 Asukoht: Rakvere
 Distributsioon: Ubuntu Hardy
 
  
   |  
 
 
| 
| 
 |  
| Kas sa pole mõelnud, et äkki on monitor katki?   Proovi mõne teise arvuti taha panna, vaata kas siis on kõik korras.
 |  
|  |  |  |  
| 
 
 |  | 
|  |    | 
| sander85 Vana Pingviin
 
  
  
 Vanus: 40
 Liitunud: 08.08.2005
 Postitused: 4359
 Asukoht: Tallinn (vahel ka Virtsu)
 Distributsioon: Mageia, Debian, CentOS
 
  
   |  | 
|  |    | 
| Mikk Pingviini kasutaja
 
  
  
 Vanus: 31
 Liitunud: 03.10.2008
 Postitused: 52
 Asukoht: Rakvere
 Distributsioon: Ubuntu Hardy
 
  
   |  
 
 
| 
| 
 |  
| Aih, see Sony VAYO on läpakas?! Ma turakas arvasin, et monitor... |  
|  |  |  |  
| 
 
 |  | 
|  |    | 
| jokkerjoss Pingviini külastaja
 
  
 
 
 Liitunud: 07.07.2008
 Postitused: 19
 
 
 
  
   |  
 
 
| 
| 
 |  
| Sai prrovitud ka teist monitori kuid ei midagi. Pusin siin ikka kui tulutult. Laadisin siin Sonypi mooduli ning proovisin uuesti SPICCTRL kuid kasutult: 
 jokkerjoss@jokkerjoss:~$ sudo modprobe sonypi
 [sudo] password for jokkerjoss:
 jokkerjoss@jokkerjoss:~$ locate sonypi
 /lib/modules/2.6.28-11-generic/kernel/drivers/char/sonypi.ko
 /usr/include/linux/sonypi.h
 /usr/lib/directfb-1.0-0/inputdrivers/libdirectfb_sonypi.so
 /usr/lib/hal/hal-system-sonypic
 /usr/src/linux-headers-2.6.28-11/include/linux/sonypi.h
 /usr/src/linux-headers-2.6.28-11-generic/include/config/sonypi
 /usr/src/linux-headers-2.6.28-11-generic/include/config/sonypi.h
 /usr/src/linux-headers-2.6.28-11-generic/include/config/sonypi/compat.h
 /usr/src/linux-headers-2.6.28-11-generic/include/linux/sonypi.h
 jokkerjoss@jokkerjoss:~$ locate sonypid
 jokkerjoss@jokkerjoss:~$ sudo modprobe sonypid
 FATAL: Module sonypid not found.
 jokkerjoss@jokkerjoss:~$ spicctrl -B
 100
 jokkerjoss@jokkerjoss:~$ spicctrl -b 255
 jokkerjoss@jokkerjoss:~$ spicctrl -B
 255
 jokkerjoss@jokkerjoss:~$ sudo updatedb
 [sudo] password for jokkerjoss:
 jokkerjoss@jokkerjoss:~$ locate sonypi
 /lib/modules/2.6.28-11-generic/kernel/drivers/char/sonypi.ko
 /usr/include/linux/sonypi.h
 /usr/lib/directfb-1.0-0/inputdrivers/libdirectfb_sonypi.so
 /usr/lib/hal/hal-system-sonypic
 /usr/src/linux-headers-2.6.28-11/include/linux/sonypi.h
 /usr/src/linux-headers-2.6.28-11-generic/include/config/sonypi
 /usr/src/linux-headers-2.6.28-11-generic/include/config/sonypi.h
 /usr/src/linux-headers-2.6.28-11-generic/include/config/sonypi/compat.h
 /usr/src/linux-headers-2.6.28-11-generic/include/linux/sonypi.h
 jokkerjoss@jokkerjoss:~$ locate spicctrl
 /usr/bin/spicctrl
 /usr/share/doc/spicctrl
 /usr/share/doc/spicctrl/AUTHORS
 /usr/share/doc/spicctrl/README.Debian
 /usr/share/doc/spicctrl/changelog.Debian.gz
 /usr/share/doc/spicctrl/changelog.gz
 /usr/share/doc/spicctrl/copyright
 /usr/share/man/man1/spicctrl.1.gz
 /var/cache/apt/archives/spicctrl_1.9-2_i386.deb
 /var/lib/dpkg/info/spicctrl.list
 /var/lib/dpkg/info/spicctrl.md5sums
 jokkerjoss@jokkerjoss:~$
 
 Ise olen ka algaja ning ei tea vastavaid käske veel terminalist. Rahvusvahelisest UBUNTU foorumist leidsin Jyrgmist:
 
 Re: FN keys on a vaio
 Ok, I decided to take another look at the Fn key combos on my Vaio. Now that I know more about Linux then I did before reading sites makes more sense.
 
 For those interested... Sony Vaios have a Sony Programable Interface inside them that deals with things like screen brightness, jog wheel (if you have one), battery, memory stick and the FN key combos. So first thing first, you need to have the Sonypi module loaded into the kernel. With the 2.6 kernel and ubuntu its already there, you just have to load it up.
 
 sudo modprobe sonypi
 
 Then we need an application that will monitor the module for signals that it produces and an application that will let us control aspects of the module. Sonypid is a basic deamon that will output to a console what signal has been recieved. So if you download and compile and run the deamon, you will see the key combos displayed on the screen, great for righting scripts. But Im guess for the most of us, not that useful.
 
 Then there is spicctrl for controling the screen brightness and getting battery levels. Again command line app, great for scripts, but also needed for other programs to control your screen brightness.
 
 And most importantly, I came accross 'rsjog' in the repositories. Lovely program written in ruby, you need to read the INSTALL file to set it up proerly tho. Has a config file where you can spesify what command you want executed when a signal is picked up (eg. what to do when you hit FN + F4).
 
 And there is a way to have the FN key combos being picked up by X as keyboard keys for assigning to short cuts in the short cut manager. But that envolves recomipiling your kernel and patching it. I dont want to do that and I prefer to have a config file with commands, so if you want to try this, you are on your own.
 
 So load the sonypi module, get spicctrl and rsjog, configure them and you can have you FN keys working on a viao Im having some minor teething problems tho. If I load the module myself it works, but if i put it into the modules file to load up on start up, it decides not to work for some unexpained reason. Maybe its the KDE deamon taking control of it (im running kubuntu 5.04).
 
 Hopes this helps people out
 
 Dave
 
 Selgitus on päris asjalik ainult terminalist käsujada andmisega jään jänni. Ehk on keegi kes teeks minusugusele algajale puust ette ja värviks punaseks kuidas seda terminalist teha täpselt?
 |  
|  |  |  |  
| 
 
 |  | 
|  |   | 
| Sisyphos Vana Pingviin
 
  
  
 Vanus: 62
 Liitunud: 24.02.2008
 Postitused: 602
 
 Distributsioon: Slackware
 
  
   |  
 
 
|  |  
| _________________
 
   
 |  | 
|  |   | 
| jokkerjoss Pingviini külastaja
 
  
 
 
 Liitunud: 07.07.2008
 Postitused: 19
 
 
 
  
   |  
 
 
| 
| 
 |  
| LUGESIN SELLE TEKSTI LÄBI NING MUL TEKKISID MYNINGAD KYSIMUSED? 
 Known Methods
 
 Some (or all) of these methods may be missing on your specific notebook model. Loading the driver with debug=1 can help discovering methods.
 [edit] Brightness [B]KUIDAS ON MUL VÖIMALIK LEIDA MEETODEID MIS OLEKSID KOHASED MINU LAPTOPI MUDELIGA NING TAASTAKSID EKRAANI VALGUSTUSE, LAADIDES DRIVERI KOOS DEBUG=1
 [/B]
 * set: SBRT KAS SEE ON KÄSK TERMINALIST VYI MIDAGI MUUD?
 * get: GBRT KAS SEE ON KÄSK TERMINALIST VYI MIDAGI MUUD?
 
 Brightness control is specially handled registering through the kernel's backlight subsystem. A new backlight device is registered and will appear under
 
 /sys/class/backlight/sony/ FILE ON SYSTEEMIS TÄIESTI OLEMAS
 
 Allowed values range from 0 to 7.
 Note: some Vaios using an NVidia graphic card will need a different utility[3] to modify the screen brightness, even though the ACPI bios provides SBRT/GBRT Methods. Moreover the NVidia bundle provides the nvidia-settings utility which can be used to change the screen brightness: MINU PCG-K23 KASUTAB  ATI-RADEON 345M VIDEOKAARTI
 
 $ nvidia-settings --assign GreenBrightness=0.5
 $ nvidia-settings --assign RedBrightness=0.5
 $ nvidia-settings --assign BlueBrightness=0.5
 
 Note 2: Some FZ and SZ vaios using the Intel GM965/GL960 card can hopefully use xbacklight to control the brightness level.
 [3]↑ 	you can use the smartdimmer helper or a recent version of nvclock
 [edit] Power on Brightness
 
 * set: SPBR
 * get: GPBR
 
 You can set the brightness value for the next (and later) boot.
 
 /sys/devices/platform/sony-laptop/brightness_default FILE ON SYSTEEMIS TÄIESTI OLEMAS
 
 Allowed values range from 1 to 8.
 
 EHK KEEGI OSKAB NYU ANDA KUIDAS LÄBI TERMINALI NEID KÄSKE TOIMETADA, ET ARVUTI EKRAANI VALGUSTUS TAASTADA?
 |  
|  |  |  |  
| 
 
 |  | 
|  |   | 
|  |