Re: [pygame] How to prevent mouse initialization in Pygame

2017-08-01 Thread Roman Mescheryakov
Hi Theo, thank you very much for the reply! As of blinking text cursor problem, I succeeded with finding an answer here . In order to get rid of blinking text cursor one should issue under the root user the following command: echo 0 >

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-28 Thread Roman Mescheryakov
Thank you Theo for this information! I tried these settings in systemd service file and here are my results: 1. I had to change TTYPath to /dev/tty2. With /dev/tty1, I had the following problems: 1. My application crashed after displaying first or second test ima

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-27 Thread Roman Mescheryakov
In case anybody interested, I faced some troubles running pygame application as a systemd service under limited user. Application runs fine for 5-10 minutes, but after that the screen becomes black and pygame graphics is not displayed. Running as root didn’t fix the problem. The SDL version u

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-24 Thread Roman Mescheryakov
In case somebody interested: running pygame with modified SDL as a systemd service succeeded without any surprises. I also hid mouse cursor with help of pygame.mouse.set_visible(False) call. My next task to solve is hiding blinking text cursor. суббота, 22 июля 2017 г., 19:51:22 UTC+3 пользо

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-18 Thread Roman Mescheryakov
Good news: I succeeded with commenting out SDL code that deals with keyboard, and after that I was able to run pygame framebuffer graphics without root rights! But there is a small issue: there is a text cursor blanking at the bottom of the screen. By the way, it turned out that /dev/console

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-17 Thread Roman Mescheryakov
понедельник, 17 июля 2017 г., 21:34:54 UTC+3 пользователь Martin Kühne написал: > What's your status about the `tty` group membership? > > cheers! > mar77i > The limited user is a member of this group: pi@masternoinit:~ $ groups pi adm tty dialout cdrom sudo audio video plugdev games user

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-17 Thread Martin Kühne
What's your status about the `tty` group membership? cheers! mar77i

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-16 Thread Roman Mescheryakov
четверг, 13 июля 2017 г., 23:22:27 UTC+3 пользователь Martin Kühne написал: > > Also Roman, please note that > many ioctls return data in pointers that can be passed to them which > should be the spot where your results actually differ. > > I remember that, in particular, VT_OPENQRY accepts po

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-14 Thread Alec Bennett
Another possibility would be to execute a command that moves the mouse way off screen? https://unix.stackexchange.com/questions/164262/can-i-simulate-mouse-movements-via-terminal-without-xdotool On Fri, Jul 14, 2017 at 5:26 AM, Annette Wilson wrote: > Hi, I'm not able to follow along as I don

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-14 Thread Annette Wilson
Hi, I'm not able to follow along as I don't have a Pi, but since I see attempts to dissect the behaviour of the SDL code via strace, I thought it worth pointing out that this source code is available and need not be treated as a complete black box. You can download it from the SDL site. My links be

Fwd: [pygame] How to prevent mouse initialization in Pygame

2017-07-13 Thread Martin Kühne
Sorry everyone for the confusion, as was mentioned, two of my previous emails was sent off-list for whatever reason. I read up on the topic arriving at the SE thread that was linked before [0] and tried to figure out the problem based on the work with strace, which I commended as very through and w

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-09 Thread Roman Mescheryakov
First some interesting fact. Earlier I wrote that performed limited user permissions setup according to reply in the How do I let an SDL app (not running as root) use the console Stac

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-07 Thread Martin Kühne
> I already changed permissions for the limited user (pi) according to this > instruction: How do I let an SDL app (not running as root) use the console, > but to no avail :( I just wanted to suggest you make sure permissions in /dev are granted, but you appear to have arrived at that conclusion

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-07 Thread Roman Mescheryakov
среда, 5 июля 2017 г., 18:37:31 UTC+3 пользователь Daniel Foerster написал: > > Yeah that's not going to work because the attempted imports just fail. If > you think having the mouse not initialized might help, change your call to > pygame.init() into calls like pygame.display.init(). > I tried

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-05 Thread Alec Bennett
Why not just programmatically move the mouse offscreen? Or change the mouse cursor to something invisible. Both are easy under wx python, im guessing easy with pygame too. > On Jul 5, 2017, at 4:22 PM, Greg Ewing wrote: > > Роман Мещеряков wrote: >> I instruct pygame to not use X Window s

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-05 Thread Greg Ewing
Роман Мещеряков wrote: I instruct pygame to not use X Window server (which, if I understand right, should set $DISPLAY environment variable), but to use framebuffer. Probably the framebuffer device is owned by root and only allows access by root. Changing the permissions on /dev/fb might let

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-05 Thread Daniel Foerster
Yeah that's not going to work because the attempted imports just fail. If you think having the mouse not initialized might help, change your call to pygame.init() into calls like pygame.display.init(). On Jul 5, 2017 10:33, "Роман Мещеряков" wrote: > > среда, 5 июля 2017 г., 3:39:28 UTC+3 пользо

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-05 Thread Роман Мещеряков
среда, 5 июля 2017 г., 3:39:28 UTC+3 пользователь mic...@callthecomputerdoctor.com написал: > > I think I can answer this. When your keyboard and mouse are plugged > directly into a Linux box and you're sitting in front of the box using it > regularly, the system has already started the X Windo

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-04 Thread michael
_> I attached keyboard (and mouse) and logged in using this keyboard. _ _> This was very surprising to me but running my application from this _ _> real console doesn’t require sudo to use pygame! Why do I need sudo _ _> when running from SSH console?!_ I think I can answer this. When your keybo

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-03 Thread Роман Мещеряков
What I want to do with my Raspberry Pi: my application will run as a service and I will interact with it via web interface. There will be multimedia projector connected to RPi. Using web interface and pygame-based backend of my application I want to output to the projector some test patterns

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-01 Thread Jake b
The best SE to post this would probably be stack overflow. There's quite a few pygame questions. Do you always require sudo to run, or only if using ssh? On Jun 30, 2017 1:29 PM, "Роман Мещеряков" wrote: > Hi all, > > In my Python application running on Raspberry Pi under Raspbian I use > Pygam

Re: [pygame] How to prevent mouse initialization in Pygame

2017-07-01 Thread Ian Mallett
On Fri, Jun 30, 2017 at 12:28 PM, Роман Мещеряков < roman.mescherya...@gmail.com> wrote: > In my Python application running on Raspberry Pi under Raspbian I use > Pygame to display some software-generated images via framebuffer. I don’t > need any input from mouse, keyboard or any other devices, a

[pygame] How to prevent mouse initialization in Pygame

2017-06-30 Thread Роман Мещеряков
Hi all, In my Python application running on Raspberry Pi under Raspbian I use Pygame to display some software-generated images via framebuffer. I don’t need any input from mouse, keyboard or any other devices, all I need is a convenient way of using framebuffer. I initialize Pygame in th