08-16-2012
The GUI output comes in a dark screen, which is not visible, after taking efforts to see, i can make out there is something on screen... by looking in that screen i tried to change the resolution... i guess my machine is lacking some graphics driver, but how can i install them... is there any solution to this...
And my laptops description is this...
Processor: Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz 2.26GHz
RAM : 3.00 GB (2.87 GB usable)
Display adapters : Standard VGA Graphics Adapter
actually i am having very very less knowledge of Linux so cant do much in this...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to install a Linux LFS server. I have not been able to figure out how to get the GUI to load up. I'm not even sure if it has been installed. Any information would be greatly appreciatted. (2 Replies)
Discussion started by: tlcrowder
2 Replies
2. UNIX for Dummies Questions & Answers
I just installed Redhat Linux 8.0 and I do not know how to get to my GUI Desktop. Right now I'm just in the shell please help. (2 Replies)
Discussion started by: savagebeast
2 Replies
3. Linux
Hi guys , I have redhat 9 and i have no idea what i'm doing.
This is my first time taking a break from windows and exploring this new OS.
I'm trying to install an External Usrobotic 56K Model Number 5686, after rebooting it was detected.
How can i configure the server so i can call (modem... (1 Reply)
Discussion started by: josramon
1 Replies
4. Ubuntu
Hello all,
I've a very strange thing hapenning in my Sys, I've configured the IP, DNS eveything for my internat connection, but Im only able to browse Redhat.com websites.
I cant open anyother site!!! :eek:
Im sure the internet is configured 'coz it displays the list of avail updates for... (11 Replies)
Discussion started by: AbhijithS
11 Replies
5. UNIX for Dummies Questions & Answers
Not sure if that's the best thread title... anyway, working remotely on a HP-UX machine I often need a GUI window when executing remote software installs, and for this I use Cygwin/X on my Windows laptop which works perfectly. Connect via telnet, set DISPLAY, run installer, GUI appears locally -... (3 Replies)
Discussion started by: stefcha
3 Replies
6. Red Hat
hi
Recently the above option has stopped working all together. On clicking on this option it appears as though the window will open as the outline of the box appears but nothing more.
On running this from a command prompt within the GUI , I get the following error:
The last line... (0 Replies)
Discussion started by: timcs
0 Replies
7. Programming
Hello, I want know about building a product on Sun solaris and Redhat Linux.
Product would contain C,C++, Java, UNIX Shell scripts and so on. It will not be a client server programme.
Thanks!
Shafi (5 Replies)
Discussion started by: shafi2all
5 Replies
8. Emergency UNIX and Linux Support
Hi there
I'm having trouble with a remote Red Hat server. We are busy with an Oracle 11g installation on this box and going through the list of required packages, etc.
The installation required elfutils-libelf-devel-0.148. When I try to install that I get the following error;
rpm -i... (6 Replies)
Discussion started by: notreallyhere
6 Replies
9. Red Hat
Hi Guys
Required help in Redhat 6.1.
After installation of Redhat 6.1 in VMware system is not going in GUI mode.
please to solve the issue...
Thanks... (5 Replies)
Discussion started by: deviltech
5 Replies
10. Red Hat
I wish to install inotify-tools-3.20.1-2.4.x86_64.rpm on Linux and fire inotifywait command.
Initially i was looking for "inotify-tools-3.xx.tar.gz" as instructed here http://jensd.be/248/linux/use-inotify-tools-on-centos-7-or-rhel-7-to-watch-files-and-directories-for-events
I have... (9 Replies)
Discussion started by: mohtashims
9 Replies
LEARN ABOUT FREEBSD
set_gfx_mode
set_gfx_mode(3alleg4) Allegro manual set_gfx_mode(3alleg4)
NAME
set_gfx_mode - Sets a graphic video mode. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int set_gfx_mode(int card, int w, int h, int v_w, int v_h);
DESCRIPTION
Switches into graphics mode. The card parameter should usually be one of the Allegro magic drivers (read introduction of chapter "Graphics
modes") or see the platform specific documentation for a list of the available drivers. The w and h parameters specify what screen resolu-
tion you want. The color depth of the graphic mode has to be specified before calling this function with set_color_depth().
The v_w and v_h parameters specify the minimum virtual screen size, in case you need a large virtual screen for hardware scrolling or page
flipping. You should set them to zero if you don't care about the virtual screen size.
When you call set_gfx_mode(), the v_w and v_h parameters represent the minimum size of virtual screen that is acceptable for your program.
The range of possible sizes is usually very restricted, and Allegro may end up creating a virtual screen much larger than the one you
request. Allowed sizes are driver dependent and some drivers do not allow virtual screens that are larger than the visible screen at all:
don't assume that whatever you pass will always work.
In mode-X the virtual width can be any multiple of eight greater than or equal to the physical screen width, and the virtual height will be
set accordingly (the VGA has 256k of vram, so the virtual height will be 256*1024/virtual_width).
Currently, using a big virtual screen for page flipping is considered bad practice. There are platforms which don't support virtual
screens bigger than the physical screen but can create different video pages to flip back and forth. This means that, if you want page
flipping and aren't going to use hardware scrolling, you should call set_gfx_mode() with (0,0) as the virtual screen size and later create
the different video pages with create_video_bitmap(). Otherwise your program will be limited to the platforms supporting hardware
scrolling.
After you select a graphics mode, the physical and virtual screen sizes can be checked with the macros SCREEN_W, SCREEN_H, VIRTUAL_W, and
VIRTUAL_H.
RETURN VALUE
Returns zero on success. On failure returns a negative number and stores a description of the problem in allegro_error.
SEE ALSO
set_color_depth(3alleg4), request_refresh_rate(3alleg4), screen(3alleg4), gfx_capabilities(3alleg4), allegro_error(3alleg4), cre-
ate_video_bitmap(3alleg4), get_desktop_resolution(3alleg4), SCREEN_W(3alleg4), SCREEN_H(3alleg4), VIRTUAL_W(3alleg4), VIRTUAL_H(3alleg4)
Allegro version 4.4.2 set_gfx_mode(3alleg4)