Carsten Haitzler <ras...@rasterman.com> писал(а) в своём письме Mon, 09 Sep 2013 11:43:40 +0200:
> On Mon, 09 Sep 2013 08:36:07 +0200 "Vadim Efimov" <eva...@evadim.ru> said: > >> Carsten Haitzler <ras...@rasterman.com> писал(а) в своём письме Mon, 09 Sep >> 2013 01:46:31 +0200: >> >> > On Sun, 08 Sep 2013 20:58:38 +0200 "Vadim Efimov" <eva...@evadim.ru> said: >> > >> > do you have a /proc/acpi/SOMETHING.... that tells you tablet state? (use >> > find - it may be in a subdir somewhere)? what states does it support >> > open/closed? on/off? >> > >> >> Seems, nothing in /proc/acpi, but I'll try to find something relevant >> according to udev rules from MagickRotation, manufacturers make it in >> different ways: > > hmm really? normally there is some /proc/acpi stuff to get the CURRENT tablet > state = there is for the lid button under the button dir (several levels > down). > I made a little bit more research I found, the /sys/devices/platform/thinkpad_acpi/hotkey_tablet_mode show 0/1 depending on state. As you can see, it seems to be platform specific. Same info I found in MagickRotation sources, but they work before acpi event added, and try parse something inside input divuce. http://bazaar.launchpad.net/~magick-admin-team/magick-rotation/stable/view/head:/hinge.py #!/usr/bin/env python2 # For tablet PC's with switches that transmit hinge state (laptop or tablet) # through an oem-wmi or oem-acpi, permitting a 'magick-rotation' symlink to be # created for them in 62-magick.rules. Currently supported examples include # the hp-wmi, dell-wmi (modified version in MagickExtras), fujitsu-tablet # (Fujitsu FUJ02BD, Fujitsu FUJ02BF), and lenovo-acpi. manual review, grep or ls | grep show only above file... >> SUBSYSTEM=="input", ATTRS{name}=="HP WMI hotkeys", MODE="640", >> GROUP="magick", SYMLINK="input/magick-rotation" SUBSYSTEM=="input", ATTRS >> {name}=="Dell WMI hotkeys", MODE="640", GROUP="magick", >> SYMLINK="input/magick-rotation" SUBSYSTEM=="input", ATTRS{name}=="ThinkPad >> Extra Buttons", MODE="640", GROUP="magick", SYMLINK="input/magick-rotation" >> SUBSYSTEM=="input", ATTRS{name}=="Fujitsu FUJ02B[DF]", MODE="640", >> GROUP="magick", SYMLINK="input/magick-rotation" >> >> Yes, cat device show reaction only 2 times - seems tabled mode "on" and "off" >> >> Also, after your commit it start work, but you need to swap names = 1 = on 0 >> = off >> >> Thanks a lot for your work! > > btw - sorry. no action to switch profiles. you can run: > > enlightenment_remote -default-profile-get PROFILENAME > > as a command... it should work. a little round-about though as it can be done > directly in code, but no action glue for it. > yep, I already try this way. It mostly work, but I found few bugs in it: After adding of new events, I choose "command" and put to ON event: enlightenment_remote -default-profile-set mobile and to OFF event: enlightenment_remote -default-profile-set standard if I want to check value of "ON event" I see nothing, but it still work as expected. next thing: if I copy via X-selection buffer it work OK, but after pressing ctrl+v inside "command" field I see E's crash dialog... and last, but not least, as I wrote - I got black screen every time I switch profiles, and have to remove e_randr* files. Is it possible to (temporally) destroy somehow randr module in E ? :-) Just to klook where is a issue. > >> >> Carsten Haitzler <ras...@rasterman.com> писал(а) в своём письме Fri, 12 >> >> Jul >> >> 2013 08:50:35 +0200: >> >> >> >> > On Sun, 16 Jun 2013 10:14:29 +0200 "Vadim Efimov" <eva...@evadim.ru> >> >> > said: >> >> > >> >> >> Carsten Haitzler <ras...@rasterman.com> писал(а) в своём письме Sun, 16 >> >> >> Jun 2013 03:39:56 +0200: >> >> >> >> >> >> > On Sat, 15 Jun 2013 19:55:06 +0200 "Vadim Efimov" <eva...@evadim.ru> >> >> >> > said: >> >> >> > >> >> >> >> Michael Blumenkrantz <michael.blumenkra...@gmail.com> писал(а) в >> >> >> >> своём письме Tue, 11 Jun 2013 11:55:23 +0200: >> >> >> >> >> >> >> >> > The old thread was too long for me to see if I fixed everything, >> >> >> >> > so >> >> >> >> > post here if you have a bug that's present using the latest >> >> >> >> > revision. >> >> >> >> >> >> >> >> 1) Can't add some new signals not via ACPI Bindings nor via Key >> >> >> >> Bindings, but they visible via acpi_listen: >> >> >> >> >> >> >> >> video/tabletmode TBLT on K >> >> >> >> video/tabletmode TBLT off K >> >> >> > >> >> >> > i just added support in e_acpi.c for these kind of acpi events. it >> >> >> > needed a whole new bit of logic to deal with them. untested as only >> >> >> > you have that hardware. :) you'll need to test and get back to me. :) >> >> >> > >> >> >> >> >> >> Hm, still no reaction. I just recompile E and try. Maybe I miss >> >> >> something? >> >> > >> >> > well i added them and relevant code... see e_acpi.c - as i dont have >> >> > your >> >> > hw, i can't test that. can you do the digging and find out? look for >> >> > _devices_simple_state. >> >> > >> >> >> >> Hello, >> >> >> >> Long time ago, in another galaxy, somebody asked about talet support... >> >> :-D >> >> Anyway, better later than never. Today I finally figure out whole damn >> >> story about tablet acpi event: >> >> >> >> — Special software (like MagickRotate) detect tablet status from hardware >> >> itself (by polling something) and do some actions - rotate screen, etc... >> >> >> >> — To acpid 2.0.17 added new event - video/tabletmode TBLT >> >> >> >> — xorg server start crashed every time then event received - unfortunately >> >> acpid devs make it malformed, and xorg devs didn't filter events from >> >> acpid. Fixed in xorg-server 1.14 >> >> >> >> — in acpid 2.0.18 devs fix tablet event, so, software start recognize it: >> >> changed from >> >> video/tabletmode TBLT on K >> >> video/tabletmode TBLT off K >> >> to more standard >> >> video/tabletmode TBLT 0000008A 00000001 K >> >> video/tabletmode TBLT 0000008A 00000000 K >> >> >> >> So, I try to do some research in e_acpi.c , but as I'm not a coder, just >> >> add >> >> >> >> {"video/tabletmode", E_ACPI_TYPE_TABLET}, >> >> >> >> in line 79, to >> >> >> >> E_ACPI_Device_Simple _devices_simple[] = >> >> >> >> comment lines about it in >> >> >> >> E_ACPI_Device_Simple_State _devices_simple_state[] = >> >> >> >> and change one line in e_acpi.h to E_ACPI_TYPE_TABLET >> >> >> >> Now I can add an "unknown" acpi event into acpi bindings dialog - woohoo! >> >> >> >> As of the original idea of switching E's profiles switch via rotate screen >> >> still unsuccessful. I can't figure out what to assign to event. Binding >> >> "run command" didn't work, and then I add second, command in first one >> >> wiped. >> >> >> >> Which module produce config "e_randr.cfg" ? If I switch profiles from >> >> xterm >> >> via enlightenment_remote -default-profile-set mobile >> >> enlightenment_remote -default-profile-set standard >> >> sometimes after switch I see black screen, and seems E crashed. I can sun >> >> E >> >> successfully only after remove e_randr.cfg* files. >> >> >> >> If I insert commands to switch E profiles to magick rotate, X crashed and >> >> I see kdm screen. magick rotate can run command before and after rotate, >> >> and I see first thing - switch profile or rotate screen works fine, but >> >> second action - rotate screen or switch profile crash X. After that, some >> >> times I have to remove e_randr configs to start normally. >> >> >> >> I update EFL+E today. >> >> >> >> Have a nice day, Vadim >> >> >> >> >> >> these I'm able to add via Key Bindings: >> >> >> >> >> >> >> >> button/zoom ZOOM 00000080 00000000 K >> >> >> >> button/screenlock SCRNLCK 00000080 00000000 K >> >> >> >> button/battery BAT 00000080 00000000 K >> >> >> > >> >> >> > i also stuffed these in. again - untested. :) >> >> >> > >> >> >> and these 3 works... >> >> >> >> >> >> >> In fact, I have convertible tablet and want to setup switching to >> >> >> >> another(kind of "tablet") profile, then convert to/from tablet mode. >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> This SF.net email is sponsored by Windows: >> >> >> >> >> >> Build for Windows Store. >> >> >> >> >> >> http://p.sf.net/sfu/windows-dev2dev >> >> >> _______________________________________________ >> >> >> enlightenment-devel mailing list >> >> >> enlightenment-devel@lists.sourceforge.net >> >> >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> >> > >> >> >> >> ------------------------------------------------------------------------------ >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! >> >> Discover the easy way to master current and previous Microsoft >> >> technologies >> >> and advance your career. Get an incredible 1,500+ hours of step-by-step >> >> tutorial videos with LearnDevNow. Subscribe today and save! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk >> >> _______________________________________________ >> >> enlightenment-devel mailing list >> >> enlightenment-devel@lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > >> >> ------------------------------------------------------------------------------ >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! >> Discover the easy way to master current and previous Microsoft technologies >> and advance your career. Get an incredible 1,500+ hours of step-by-step >> tutorial videos with LearnDevNow. Subscribe today and save! >> http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk >> _______________________________________________ >> enlightenment-devel mailing list >> enlightenment-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel