Go to advanced search

by ksharindam
Tue Apr 02, 2019 12:40 pm
Forum: Raspbian
Topic: Taking long time to boot up
Replies: 3
Views: 198

Re: Taking long time to boot up

after a google search of random: crng init done I found that It is a kernel problem.
And I have fixed my problem by installing rng-tools5 package.
by ksharindam
Tue Apr 02, 2019 12:12 pm
Forum: Raspbian
Topic: Taking long time to boot up
Replies: 3
Views: 198

Re: Taking long time to boot up

Output of sudo systemd-analyze blame 2.011s dev-mmcblk0p2.device 1.708s raspi-config.service 1.328s networking.service 940ms dhcpcd.service 840ms keyboard-setup.service 575ms systemd-logind.service 534ms lightdm.service 430ms systemd-timesyncd.service 413ms systemd-udevd.service 409ms systemd-udev-t...
by ksharindam
Tue Apr 02, 2019 2:37 am
Forum: Raspbian
Topic: Taking long time to boot up
Replies: 3
Views: 198

Taking long time to boot up

I am using raspbian stretch lite with XFCE desktop. It took 25-30 secs to boot up. But now it takes more than 60 secs to boot up. The output of journalctl indicates that random : crng init done part is taking long time. The output is here Apr 01 02:00:26 raspberrypi polkitd[436]: started daemon vers...
by ksharindam
Tue Mar 26, 2019 3:01 pm
Forum: Raspbian
Topic: Pi Without seeing
Replies: 2
Views: 205

Re: Pi Without seeing

To get hdmi output, at first detach your broken display from Pi.
Then remove the SD card from Pi and insert into your android phone.
Edit config.txt and add the line

Code: Select all

hdmi_force_hotplug=1
Then reinsert the SD card to Pi and boot up.
by ksharindam
Sat Jan 26, 2019 4:16 am
Forum: Graphics programming
Topic: transformation matrix of pdf not working for translation
Replies: 0
Views: 721

transformation matrix of pdf not working for translation

I am using pspdftool (https://sourceforge.net/projects/pspdftool/) program to transform pdf pages. It transforms pages by appending q a b c d e f cm command for [a b c d e f] matrix. However rotation and scaling working. But when i try to translate it fails. To translate i am trying to use matrix li...
by ksharindam
Wed Dec 12, 2018 4:12 pm
Forum: Graphics programming
Topic: Qt
Replies: 23
Views: 3433

Re: Qt

If you are choosing a Gui library, Qt will be great. For a beginner , gtk is easier to learn than qt. But after you learn how to implement signal and slots, and subclass a QObject, everything will be easier with qt. When i started to learn gtk, i tried to create a simple drawing app, and failed to d...
by ksharindam
Tue Dec 11, 2018 7:30 pm
Forum: Graphics programming
Topic: Qt
Replies: 23
Views: 3433

Re: Qt

And is it true that the Qt UI uses gtk ? No, Qt does not use gtk, it has its own gui libraries. But in some cases it uses native dialog, such as it can open gtk dialog on a raspbian system. Speaking about pro and cons... Gtk should be faster and the libs are installed by default. While Qt is easyer...
by ksharindam
Thu Dec 06, 2018 1:49 pm
Forum: Raspbian
Topic: starting omxplayer in .profile
Replies: 6
Views: 540

Re: starting omxplayer in .profile

Yes, xterm requires xserver.

If you are running it in cmdline , then it should not require any terminal for keyboard input.
I dont know why it is not taking keyboard input.
by ksharindam
Wed Dec 05, 2018 5:00 pm
Forum: Raspbian
Topic: starting omxplayer in .profile
Replies: 6
Views: 540

Re: starting omxplayer in .profile

to control omxplayer, such as quit by pressing Esc, you have to run omxplayer in terminal.
To run omxplayer in fullscreen in xterm, use this command...

Code: Select all

xterm -fullscreen -e omxplayer -b file.mp4
You have to put this command in .profile
by ksharindam
Sat Dec 01, 2018 3:21 pm
Forum: Raspbian
Topic: How do I clone data disk on a live system?
Replies: 4
Views: 591

Re: How do I clone data disk on a live system?

Yes , You can use rsync.

you can also use cp command. cp command with -p flag will reserve all the permissions.

Code: Select all

cp -rp /media/pi/SOURCE-DRIVE/. /media/pi/DESTINATION-DRIVE
If you copy a file a file which is changing, it is most likely that the file will be corrupted.
by ksharindam
Mon Nov 26, 2018 2:48 am
Forum: OpenGLES
Topic: Sharing an OpenGLES 2.0 Christmas Scene ...
Replies: 12
Views: 4272

Re: Sharing an OpenGLES 2.0 Christmas Scene ...

Great job...
Give the github link of the source
by ksharindam
Sat Nov 24, 2018 5:33 am
Forum: Graphics programming
Topic: How to use mmal to decode jpeg image
Replies: 2
Views: 2752

How to use mmal to decode jpeg image

Is it possible to decode a jpeg image using mmal?
If yes , then tell me how. It wiil be helpful if you give code example.

I know it is possible using openmax but i want to use simpler mmal api.
by ksharindam
Thu Nov 22, 2018 1:43 pm
Forum: Raspbian
Topic: VLC 3.0 with hardware acceleration
Replies: 86
Views: 16924

Re: VLC 3.0 with hardware acceleration

I still wish that fullscreen mode with mouse triggered popup transport bar was possible. You can do that by selecting X11 video output (XCB) . Performance will be similar to that of x11 splitter for RPi in windowed mode I suspect that depends on the resolution of the clip. The video will have to be...
by ksharindam
Thu Nov 22, 2018 1:29 pm
Forum: Raspbian
Topic: Outdated youtube-dl package
Replies: 4
Views: 1581

Re: Outdated youtube-dl package

I think you have tried the second command to install (install in local). For this ~/.local/bin must be in PATH. For this i add this line in ~/.profile if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi and also create a text file /etc/X11/Xsession.d/99user with the contents... # Cr...
by ksharindam
Thu Nov 22, 2018 2:34 am
Forum: Raspbian
Topic: VLC 3.0 with hardware acceleration
Replies: 86
Views: 16924

Re: VLC 3.0 with hardware acceleration

pagenotfound wrote:
Wed Nov 21, 2018 5:55 am
I still wish that fullscreen mode with mouse triggered popup transport bar was possible.
You can do that by selecting X11 video output (XCB) . Performance will be similar to that of x11 splitter for RPi in windowed mode
by ksharindam
Wed Nov 21, 2018 5:40 pm
Forum: Raspbian
Topic: Outdated youtube-dl package
Replies: 4
Views: 1581

Re: Outdated youtube-dl package

I think you should uninstall the repo version and install latest version of youtube-dl using pip.

Code: Select all

sudo pip install youtube-dl
Or

Code: Select all

pip install --user youtube-dl
by ksharindam
Wed Nov 21, 2018 5:35 pm
Forum: Raspbian
Topic: Problems getting RASPIAN STRETCH LITE image to work
Replies: 4
Views: 1279

Re: Problems getting RASPIAN STRETCH LITE image to work

mglass wrote:
Wed Nov 21, 2018 1:30 pm
However, I can't get the image to work. It appears that the Boot partition is ok, but the Linux (ext4) partition is corrupt.
How did you test that ext4 is corrupt?
by ksharindam
Mon Nov 19, 2018 2:49 am
Forum: Raspbian
Topic: [Solved] Failed to clone a running raspbian stretch system
Replies: 7
Views: 1346

Re: Failed to clone a running raspbian stretch system

Was this backup run after the November 13, 2018 upgrade? Yes You are also copying 2 different partition formats. Have you properly formatted your card? There is one FAT16 partition and one Ext4 partition. Also the FAT16 has to be bootable. Actually i use three partitions. One for boot (FAT32), one ...
by ksharindam
Sun Nov 18, 2018 6:21 pm
Forum: Raspbian
Topic: Bash Scripts and xterm error.
Replies: 5
Views: 1685

Re: Bash Scripts and xterm error.

I think xterm was set the default x-terminal-emulator. But the package does not exist (may be a raspbian bug). you can manually set lxterminal as x-terminal-emulator by running the following command sudo update-alternatives --config x-terminal-emulator you can try this in a fresh image, and check if...
by ksharindam
Sun Nov 18, 2018 5:34 pm
Forum: Raspbian
Topic: [Solved] Failed to clone a running raspbian stretch system
Replies: 7
Views: 1346

Re: Failed to clone a running raspbian stretch system

Finally I have found the problem.
running sudo fdisk -l shows message "Partition table entries are not in disk order".
There was some problem in partitioning. So i deleted all partitions and recreated them. then copied all files using the script.
Problem solved !
by ksharindam
Sun Nov 18, 2018 4:53 pm
Forum: Raspbian
Topic: [Solved] Failed to clone a running raspbian stretch system
Replies: 7
Views: 1346

Re: Failed to clone a running raspbian stretch system

I am not using dd command to clone the card, I am using cp command to copy all files of the partitions (see my script). So copying from larger to smaller sdcard should not create problem. And I am copying from 16GB card to 16GB card.
I did not get any error or warning in console.
by ksharindam
Sun Nov 18, 2018 3:20 pm
Forum: Raspbian
Topic: [Solved] Failed to clone a running raspbian stretch system
Replies: 7
Views: 1346

Re: Failed to clone a running raspbian stretch system

fruitoftheloom wrote:
Sun Nov 18, 2018 3:08 pm
Why not use Raspbian Stretch with Desktop built in SD Card Copier utility, it clones a running OS to an SD Card in a USB SDHC Card Reader.
I have to try that as last option.

But my question is why my method is not working now, though it worked for last 5 times?
by ksharindam
Sun Nov 18, 2018 2:41 pm
Forum: Raspbian
Topic: Bash Scripts and xterm error.
Replies: 5
Views: 1685

Re: Bash Scripts and xterm error.

Check if xterm package exists.
Run

Code: Select all

dpkg -l | grep xterm
and see if you get any output.

If xterm package does not exist , install it

Code: Select all

sudo apt install xterm
by ksharindam
Sun Nov 18, 2018 2:30 pm
Forum: Raspbian
Topic: [Solved] Failed to clone a running raspbian stretch system
Replies: 7
Views: 1346

[Solved] Failed to clone a running raspbian stretch system

I am trying to clone a running Rasbian stretch to another new sdcard. I am doing this by creating three partitions boot, root and home. I am copying root by running this picopy.sh script inside the root partition of new sdcard. #!/bin/bash # Open terminal # Change directory to the folder where root ...

Go to advanced search