Git Product home page Git Product logo

sevensquare's People

Contributors

flutterbrony avatar iamsuyogjadhav avatar maksverver avatar oesse79 avatar penguinyang avatar yangh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sevensquare's Issues

BadDrawable error and white screen

Hi, I have a Samsung Galaxy S6 updated to Android 6.0.1. I succesfully installed seven square dependencies and I compiled and installed it. When I run seven-square command from the terminal I receive this error:

X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x1400013

And the seven square window is totally white, but if I click on the white screen my phone receive the input.

terminate called after throwing an instance of 'std::bad_alloc'

Installation qt4 required packages -> done
adb installation -> correct
compilation with make -> alright
run ./build/seven-square -> i got this error: terminate called after throwing an instance of 'std::bad_alloc'

Runtime environment
OS: Ubuntu 22.04.1 LTS x86x64
Kernel: 5.15.0-48-generic
shell: Shell: zsh 5.8.1

Not installing -> Outdated version of Qt - 4 Required(perhaps) - Have 5

All the steps of the tutorial were going along quite well, but when it came time for..
...make
I got the all the lines of output indicating something was happening, but the last few lines looked like this...

collect2: error: ld returned 1 exit status
Makefile:117: recipe for target 'seven-square' failed
make[1]: *** [seven-square] Error 1
make[1]: Leaving directory '/home/omar/sevensquare/build'
Makefile:11: recipe for target 'app' failed
make: *** [app] Error 2

And then using -> make install <- I get the error...

cp -vf build/seven-square /usr/bin/
cp: cannot stat 'build/seven-square': No such file or directory
Makefile:14: recipe for target 'install' failed
make: *** [install] Error 1

I have no idea how to fix this problem, maybe change my Qt version which is currently Qt 5.6.2 but I noticed the prior commands say qt4 and such.

Invalid FB data len: 8290304 require 8294400

1534833297544 Invalid FB data len: 8290304 require 8294400
1534833297681 Adb exec error...
1534833297681 Device disconnected
1534833298065 CAP FB in 512 ms
1534833298122 Invalid FB data len: 8290304 require 8294400

Not working on Nexus 5x Android 6.0.1

Hi, I had everything working on my old Nexus 5. I just bought a 5x to replace it and seven-square no longer works. The app just stays in a waiting stage even though I have turned USB debugging on in the developer options on the phone.

Thanks for working on this project! It has been very helpful.

not handle screen rotation

Thanks for your program.

I have android application that starts only landscape mode.

If I run seven-square and after that android-application (and before that android device was in portrait mode) I got this (screenshot of seven-square):

garbage

But if I run android-application and after run seven-square all looks great.

minigzip executable syntax

so far I've been able to identify how minigzip is called. however I can't find how the executable is used (syntax for compress/decompress). if it's the same as gzip I can't seem to find where the definition for syntax is.

How to uninstall

how to uninstall after intaling on system, cant using make unistall

Asus ZC520KL Android 7.1.1 Repeat Connecting

Asus ZC520KL Android 7.1.1
Ubuntu Budgie 17.10 64bit
NV 136
Intel Core i5-7500
Gnome 3.26.2
Repeat reConnecting always, but look works
When display is white in Settings menu SS work fine, but repeat connecting
If I open any displays it have many artifacts from center to bottom screen
If I open Camera image on screen very bad. It have so many artifacts and display distortion

My error console messages:
Adb exec error...
1522262459975 ADB Wait for device
1522262459984 ADB Found
1522262459991 Compressed data transfer false
1522262460173 Screencap on device options -q -s false false
1522262460495 CAP FB in 322 ms
1522262460619 Adb exec error...
1522262460621 Device disconnected
1522262460878 CAP FB in 351 ms
1522262460905 Invalid FB data len: 3686395 require 3686400
1522262463276 ADB Wait for device
*** Error in `seven-square': free(): invalid size: 0x00007f9664529790 ***
Aborted (core dumped)

LG G2 4.4.2
Kernel 3.4.0
It work!
I see my screen, i can click on it, camera work too
But when I open something, screen update can wait for 3-10 seconds, and then update
BUT when I click - my phone get clicks immediately

Phillips V387 4.4.2 same problem as LG G2 - very slow screen update

slow reaction

first of all, thank you for this tool, it's awesome.
However, at least with my low end device, the reaction time is incredibly slow.
I'm sure this is constantly being worked on already though. I hope it can be improved in the future. Or maybe there's something I can do to improve it?

Edit: Just seen that the last release was in 2013

LG G2 4.4.2 very slow screen update

LG G2 4.4.2
Kernel 3.4.0
It work!
I see my screen, i can click on it, camera work too
But when I open something, screen update can wait for 3-10 seconds, and then update
BUT when I click - my phone get clicks immediately

Question: How to build patched screencap

Firstly I want to thank you for this awesome tool. I used to use Vysor, but this is adequate free alternative.

Performance is OK, but I would liket to try minigzip with patched screencap. However I've no experience with building Android tools. I guess I need to download android SDK which is quite huge. Is there any faster way how to do it? Also what is mm tool?

Many Thanks

Very slow

Writing into a browser took a good 10 seconds to complete!

Other than that, it is amazing and well done.

backlight path different

Backlight path should be configurable, or it should be detected.

code:

#define SYS_LCD_BACKLIGHT   "/sys/class/leds/lcd-backlight/brightness"

My phone:

$ cat /sys/class/leds/lcd_backlight0/brightness                                                                                                                                                         
158

Cannot scroll

It would be good to be able to scroll by dragging up (for example)

Make fails with `QtGui/QApplication: No such file or directory` on Ubuntu 16.04

sudo apt-get install qt4-qmake libqt4-dev libqtcore4 libqtgui4
make
mkdir -p build
(cd build && qmake -o Makefile ../seven-square.pro)
./contributes/generate-keymap.sh
Generate keymap header from src/keycodes.h...58 key map generated in src/keymap-generated.h.
(cd build && make)
make[1]: Entering directory '/home/lpryszcz/src/sevensquare/build'
Makefile:349: warning: overriding recipe for target 'moc_adbfb.cpp'
Makefile:344: warning: ignoring old recipe for target 'moc_adbfb.cpp'
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../sevensquare -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o main.o ../src/main.cpp
../src/main.cpp:8:30: fatal error: QtGui/QApplication: No such file or directory
compilation terminated.
Makefile:377: recipe for target 'main.o' failed
make[1]: *** [main.o] Error 1
make[1]: Leaving directory '/home/lpryszcz/src/sevensquare/build'
Makefile:11: recipe for target 'app' failed
make: *** [app] Error 2

installation problem: "g++: Command not found"

Hello, I am on Linux Mint 18.1 Mate. I have problems installing with the following method:
sudo apt-get install android-tools-adb qt4-qmake libqt4-dev libqtcore4 libqtgui4
wget https://github.com/yangh/sevensquare/archive/master.zip
unzip master.zip;cd sevensquare-master;make

The following errora occurs after executing the make command:

mkdir -p build
(cd build && qmake-qt4 -o Makefile ../seven-square.pro)
./contributes/generate-keymap.sh
Generate keymap header from src/keycodes.h...58 key map generated in src/keymap-generated.h.
(cd build && make)
make[1]: Entering directory '/home/d/sevensquare-master/build'
Makefile:209: warning: overriding recipe for target 'moc_adbfb.cpp'
Makefile:204: warning: ignoring old recipe for target 'moc_adbfb.cpp'
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../sevensquare-master -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I../../sevensquare-master -I. -o main.o ../src/main.cpp
make[1]: g++: Command not found
Makefile:248: recipe for target 'main.o' failed
make[1]: *** [main.o] Error 127
make[1]: Leaving directory '/home/d/sevensquare-master/build'
Makefile:11: recipe for target 'app' failed
make: *** [app] Error 2

Ideas?

ls return code is not zero

My phone is not rooted.

$ ls -d /sys/class/input/input*                                                                                                                                                                         
ls: /sys/class/input/input0: Permission denied
ls: /sys/class/input/input1: Permission denied
ls: /sys/class/input/input2: Permission denied
ls: /sys/class/input/input3: Permission denied
ls: /sys/class/input/input4: Permission denied

ls return code is not zero, so I had to remove the line emit deviceDisconnected() in code:

    args << "shell" << "ls -d" << QString(SYS_INPUT_DIR) + "input*";
    adb.run(args);

    if (! adb.exitSuccess()) {
        emit deviceDisconnected();
        return;
    }

Now the program works without disconnection.

repeated disconnections when used with ZenPad 3S 10

Hi, I've just tried SevenSquare (commit 40da13d), compiled on an archlinux (4.13.12-1-ARCH), against an ASUS ZenPad 3S 10 (Z500M, a.k.a. P027). It compiles well, it does a capture of my tablet's screen, but with a constant overlay, cycling with "Waiting...", "Probing device...", "Connected...", etc. At the same time, I get the following warnings on the console (again, a sort of a cycle). (Disconnections occur every second or so.)

Is there anything I should try to fix this?

1511855561218 ADB Wait for device 
1511855561222 ADB Found 
1511855561224 Compressed data transfer false 
New view size QSize(320, 562) QSize(-1, -1) 
1511855561261 New scene size: 320 530 
1511855561354 Screencap on device options -q -s false false 
1511855561878 CAP FB in 524 ms 
1511855561901 New Remote screen FB: 1536 2048 1 
New view size QSize(320, 458) QSize(320, 562) 
1511855561917 New scene size: 319 426 
1511855561998 Adb exec error... 
1511855561998 Device disconnected 
1511855562030 Device has sys LCD brightness API: true 
1511855562486 CAP FB in 562 ms 
1511855562619 ADB Wait for device 
1511855562624 ADB Found 
1511855562627 Compressed data transfer false 
1511855562788 Screencap on device options -q -s false false 
1511855563340 CAP FB in 551 ms 
1511855563457 Adb exec error... 
1511855563457 Device disconnected 
1511855563490 Device has sys LCD brightness API: true 
1511855563916 CAP FB in 540 ms 
1511855564395 ADB Wait for device 
1511855564405 ADB Found 
1511855564408 Compressed data transfer false 
1511855564537 Screencap on device options -q -s false false 
1511855565059 CAP FB in 522 ms 
1511855565166 Adb exec error... 
1511855565166 Device disconnected 
1511855565200 Device has sys LCD brightness API: true 
1511855565693 CAP FB in 599 ms 
1511855566074 ADB Wait for device 
1511855566081 ADB Found 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.