Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sony Vaio Laptop Utilities (sony-laptop-tools-0.8)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
gruftie
Apprentice
Apprentice


Joined: 24 Sep 2002
Posts: 182

PostPosted: Wed Sep 10, 2008 8:57 am    Post subject: Reply with quote

thank you for the quick reply 8)
i will try this as soon as i'm back home.

regards

daniel
Back to top
View user's profile Send private message
gruftie
Apprentice
Apprentice


Joined: 24 Sep 2002
Posts: 182

PostPosted: Fri Sep 12, 2008 8:13 am    Post subject: Reply with quote

ok, this works :)
it's really a great tool, thanks for this :D
Back to top
View user's profile Send private message
developer
n00b
n00b


Joined: 23 May 2007
Posts: 20
Location: Russia

PostPosted: Tue Sep 23, 2008 7:12 pm    Post subject: Reply with quote

Xerionn wrote:
Quote:
Value when power cable is plugged on and plugged off.

For some reason this does not work... From where do you get the status of the system if its plugged or unplugged ?
I can see that cat /sys/class/power_supply/BAT0/status says either charging or discharging for me i could get it from there maybe ? Any other idea would be welcome.

Anything i can use from that to the common.conf ? But i guess that if the sony laptop does not support my model yet i cant get Fn keys to work .

Thank you again for the tool that you provided :)


Hi Xerionn, version 0.8 of sony-laptop-tools is released. It supported plug on/off power cable detection using /sys/class/power_supply/BAT*/status.
Back to top
View user's profile Send private message
Xerionn
n00b
n00b


Joined: 16 Apr 2007
Posts: 68

PostPosted: Wed Sep 24, 2008 4:46 pm    Post subject: Reply with quote

Cheers mate !
For one more time thanks you , the battery stuff works perfectl now :)
But for some reason i cannot see the OSD for the sound. I dont know why but i can see it normally when i use the brightness keys...
They keys are recognised normally by xbindkeys, for example

Code:
xbindkeys -n -k -v
displayName = :0.0
rc file = /home/xerion/.xbindkeysrc
Press combination of keys or/and click under the window.
You can use one of the two lines after "NoCommand"
in $HOME/.xbindkeysrc to bind a key.
"(Scheme function)"
    m:0x0 + c:122
    XF86AudioLowerVolume


But nothing happens. I will have to check and see if there is something with the kde4 cause i think its the only thing that changed for me. Oh and the evdev thingy which now take cares of the input devices ... I commented out the other keys in software-keys.conf and left the evdev stuff[/quote]
Back to top
View user's profile Send private message
developer
n00b
n00b


Joined: 23 May 2007
Posts: 20
Location: Russia

PostPosted: Wed Sep 24, 2008 5:06 pm    Post subject: Reply with quote

Xerionn wrote:
Cheers mate !
For one more time thanks you , the battery stuff works perfectl now :)
But for some reason i cannot see the OSD for the sound. I dont know why but i can see it normally when i use the brightness keys...
They keys are recognised normally by xbindkeys, for example

Code:
xbindkeys -n -k -v
displayName = :0.0
rc file = /home/xerion/.xbindkeysrc
Press combination of keys or/and click under the window.
You can use one of the two lines after "NoCommand"
in $HOME/.xbindkeysrc to bind a key.
"(Scheme function)"
    m:0x0 + c:122
    XF86AudioLowerVolume


But nothing happens. I will have to check and see if there is something with the kde4 cause i think its the only thing that changed for me. Oh and the evdev thingy which now take cares of the input devices ... I commented out the other keys in software-keys.conf and left the evdev stuff

Thanks for thanks! :)

Yes, you supposion is right! It's because evdev. Brightness control works using ACPI events, when sound control using x11 driver.

At first - codes of F{2,3,4} keys you can receive using: "xbindkeys -n -k -v" command.

Second: right codes already in "/etc/sony-laptop-tools/software-keys.conf"

You can uncomment right variant for you driver (sorry, there is no automatic detection of this currenly..).
Back to top
View user's profile Send private message
Xerionn
n00b
n00b


Joined: 16 Apr 2007
Posts: 68

PostPosted: Thu Sep 25, 2008 1:10 am    Post subject: Reply with quote

Yeap i have uncommeneted and as you see they are recognised correctly from xbindkeys but still i dont get the OSD

I know we live in a work of automation but some things is good to be done by hand :) cant have automatic detection for everything hehe. I dont mind editing a .conf file ! :P
Back to top
View user's profile Send private message
developer
n00b
n00b


Joined: 23 May 2007
Posts: 20
Location: Russia

PostPosted: Thu Sep 25, 2008 6:00 am    Post subject: Reply with quote

Xerionn wrote:
Yeap i have uncommeneted and as you see they are recognised correctly from xbindkeys but still i dont get the OSD

I know we live in a work of automation but some things is good to be done by hand :) cant have automatic detection for everything hehe. I dont mind editing a .conf file ! :P


Sorry, I've read your first post inattentively.

Let's, sound level control is worked, but without OSD, right?

Are you restarted sony-laptop-tools daemon after modification of software-keys.conf? (/etc/init.d/sony-laptop-tools restart). Try it if no, maybe it will be helpful.

PS. this tool works fine with kde4-svn for me (and i don't use evdev driver).
In nearest few day i will try compile xorg with evdev driver..
Back to top
View user's profile Send private message
developer
n00b
n00b


Joined: 23 May 2007
Posts: 20
Location: Russia

PostPosted: Tue Sep 30, 2008 10:53 am    Post subject: Reply with quote

Xerionn wrote:
but still i dont get the OSD

Look last version - 0.8-r1, it should fix bug with no OSD notifications in some cases.
Back to top
View user's profile Send private message
Xerionn
n00b
n00b


Joined: 16 Apr 2007
Posts: 68

PostPosted: Tue Oct 14, 2008 6:41 am    Post subject: Reply with quote

Sorry mate,

I did not have the time to test it until now !
Unfortunately i still dont get any OSD for the sound buttons and i think i know why this happens :) but i could also be wrong (something that actually happens to me often hehe)

The keys for voume up/down/mute in evdev are regognised by default. Which means that xbindkeys are not used for that keys. So when you set it up in xbindkeys it makes no difference cause you rely on xbindkeys to report back and also have the OSD to report. However as i think due to the keys being recognised by default xbindkeys is not used so OSD and the actions of these buttons dont work.

So i guess a solution would be to somehow grab these keys and make OSD report or to force somehow xbindkeys to manage these keys so the OSD can work.

Cheers,
Xerion
Back to top
View user's profile Send private message
gruftie
Apprentice
Apprentice


Joined: 24 Sep 2002
Posts: 182

PostPosted: Sun Nov 02, 2008 1:32 pm    Post subject: Reply with quote

Xerionn wrote:
Well i edited /usr/src/linux/drivers/misc/sony-laptop.c actually....
You will find somewhere over there
Code:
/* SNC-only model map */
static struct dmi_system_id sony_nc_ids[] = {
        {
            .ident = "Sony Vaio FE Series",
            .callback = sony_nc_C_enable,
            .driver_data = sony_C_events,
            .matches = {
                DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
                DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FE"),
            },
        },


So then you can add your model.So this should be something like that. This is what i did at least. Just paste that below the previous model
Code:
 {
            .ident = "Sony Vaio AR Series",
            .callback = sony_nc_C_enable,
            .driver_data = sony_C_events,
            .matches = {
                DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
                DMI_MATCH(DMI_PRODUCT_NAME, "VGN-AR"),
            },
        },



Remember to make modules and make modules_install after the changes.

About the brightness... Thing is that brightness is a total different thing with the backlight. So changing the brightness does not get the same result as with the backlight dimming. So you need to get backlight dimming working hehe.


i think, someone should contribute this directly to the kernel, as it's still not in there. does someone have any experience with the procedure of contributing patches to the kernel? i created a diff for the above, but i don't know if this is the right format for a kernel patch.

Code:

--- sony-laptop.c.org
+++ sony-laptop.c
@@ -889,6 +889,15 @@
             DMI_MATCH(DMI_PRODUCT_NAME, "VGN-N"),
          },
       },
+      {
+         .ident = "Sony Vaio AR Series",
+         .callback = sony_nc_C_enable,
+         .driver_data = sony_C_events,
+         .matches = {
+            DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
+            DMI_MATCH(DMI_PRODUCT_NAME, "VGN-AR"),
+         },
+      },
       { }
 };
 


is someone willing to do this or can point me to some informations about this?

thanks,

daniel
Back to top
View user's profile Send private message
Xerionn
n00b
n00b


Joined: 16 Apr 2007
Posts: 68

PostPosted: Tue Nov 18, 2008 11:50 pm    Post subject: Reply with quote

Unfortunately i do not know how to commit this directly to the kernel but i guess if you ask somewhere in the gentoo forum people will point youto the correct direction !

Also i am not aware of the process needed. I guess it should be sent to the maintainer of the sony_laptop but to my knowledge there was not any developping done the last years (i may be totally wrong though hehe).

It would be interesting to know what happened if you commit it upstream so please let us know :)

Cheers,
Xerionn
Back to top
View user's profile Send private message
gruftie
Apprentice
Apprentice


Joined: 24 Sep 2002
Posts: 182

PostPosted: Sat Dec 06, 2008 2:30 pm    Post subject: Reply with quote

i just upgraded from version 0.7 to version 0.8-r1 and after a reboot, when /etc/init.d/sony-laptop-tools is loaded, the init processes are hanging just after the message "Entering Runlevel 3". When i press enter, after each keypress it starts a new service, until the entire init is done and the login-promt is visible. but when i try to login, the keyboard doesn't respond to every keypress. i have to enter each key more than one time before it appears. this does, however, prevent me from login, as the password is ever wrong (because i just can't see, if the keypress is recognized). Unfortunately i have no second machine here to test if i can ssh into the laptop.
Any idea, what might be wrong? here's my emerge --info:

Code:
Portage 2.1.6_rc3 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-glibc2.2.5
Timestamp of tree: Sat, 06 Dec 2008 08:40:01 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/xbmc/userdata /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ ftp://mirror.nutsmaas.nl/gentoo/ http://gentoo.inode.at/ http://ftp.heanet.ie/pub/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://gentoo.inode.at/source/ http://ftp.linux.ee/pub/gentoo/distfiles/ http://85.25.128.62"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/desktop-effects /usr/local/portage/layman/rbu /usr/local/portage/layman/berkano /usr/local/portage/layman/mozilla /usr/local/portage/layman/java-overlay /usr/local/portage/layman/gnome /usr/local/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acl acpi akamaru alsa amd64 ao apache2 artworkextra asf audacious audiofile avahi avi bash-completion beagle bluetooth bonobo branding browserplugin bzip2 cairo cddb cdparanoia cdr cli cpudetection cracklib crypt ctype cups dba dbus dcraw deprecated dga dhcp directv discouraged divx divx4linux dlloader dri dvb dvd dvdnav dvdr dvdread eap-tls eds emerald encode esd evo evo2 exif fbcon ffmpeg fftw firefox flac flash font-server fortran freetype frontendonly ftp fuse gamin gb gd gdbm gedit geoip gif gimp glitz glut gmedia gnome gnome-keyring gnome2 gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml gtkimageview gui guile guionly hal hddtemp hdri iconv id3 idn ieee1394 imap imlib inotify ipv6 irda irmc isdnlog ithreads java jpeg jpeg2k keyring lame laptop lcms libcaca libnotify libssh2 libvisual lirc lm_sensors mad mbox mdnsresponder-compat midi mikmod milter mime ming mjpeg mmx mmx2 mmxext mng mono moonlight motif mozcalendar mozilla mozpango mozsvg mozxmlterm mp3 mp4live mpeg mpeg2 mplayer mppe-mppc msn mudflap multilib mysql mythtv nautilus ncurses networking networkmanager nls nntp nptl nptlonly nsplugin nvidia nxclient ogg oggvorbis openexr opengl opengl-video opengl-xvmc openmp oss pam pcre pdf pdflib perl php pidgin plugin-evolution2 plugin-file plugin-irmc plugin-python png ppds pppd pwdb python qt3support quicktime raw rdesktop readline realmedia reflection regex rtc samba sane sasl sdl serial session simplexml slang slp smime smp spamassassin spl sse sse2 sse4 ssl ssse3 startup-notification svg sysfs tcltk tcpd tetex theora threads threadsafe tiff transcode truespeech truetype udev unicode unsupported usb userlocales utf8 v4l v4l2 vcd vdpau vorbis wifi wma wmp x264 xcb xext xine xinerama xml xml2 xmldoclet xmlreader xmlrpc xmlwriter xorg xscreensaver xsl xulrunner xv xvid xvmc yv12 zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
Pseud
Apprentice
Apprentice


Joined: 19 Mar 2004
Posts: 273
Location: Bangalore, India

PostPosted: Sat Dec 06, 2008 4:27 pm    Post subject: Reply with quote

Hi developer,

I managed to get a patched version of nvclock to do the backlight controls for the 8xxx series -- please see this thread.
I was wondering if there is enough information there (particularly in the patch) for you to be able to update your tools to inlcude support for the 8xxx series ...

Thanks!
_________________
eschew obfuscation
Back to top
View user's profile Send private message
figueroa
Guru
Guru


Joined: 14 Aug 2005
Posts: 416
Location: GA-USA

PostPosted: Sat Feb 21, 2009 8:21 pm    Post subject: Reply with quote

I found this thread, and since I'm using a Sony VGN-N250, I thought I'd try to install this program.

It worked, almost perfectly. The volume, mute, brightness up and down worked, but no OSD.

I found why OSD didn't work by running it from the shell. It complained that it couldn't find the font. I changed the font to fixed, times, helvetica, and utopia - all of which work, but utopia looks best.

The program wouldn't let me run it as a user, only root, so I did chmod o+s /usr/bin/sony-laptop-tools and that fixed that problem.

With regard to OSD, the OSD bar on sound volume is always at 0. With Mute/unMute, the text just pops up Mute, with no indication of the sound is on or off. However, with my xfce4-mixer set to Master,0 it shows the volume level OK.

Overall, good work, developer, and thank you.
_________________
Andy Figueroa
andy@andyfigueroa.net Working with Unix since 1983.
Back to top
View user's profile Send private message
figueroa
Guru
Guru


Joined: 14 Aug 2005
Posts: 416
Location: GA-USA

PostPosted: Fri Feb 27, 2009 5:25 am    Post subject: Reply with quote

Regarding the instruction:

2) If your want to use OSD add following
to your ~/.bashrc file:
xhost +local:root

Since OSD only works in X, much better to put the xhost command in your ~/.xinitrc as I did in the following:

xhost +local:root > /dev/null
startxfce4

This eliminates all those error messages you would otherwise see.

THIS IS A GREAT "program."
_________________
Andy Figueroa
andy@andyfigueroa.net Working with Unix since 1983.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum