[SOLVED]how to disable all antialiasing

I am using openbox, xfce4-panel, firefox. How can I disable all antialiasing of fonts on my computer? I know I can change in the .Xdefaults to make urxvt not antialiased, and i'm sure some other applicaiton specific settings but am looking for a system wide solution.
Last edited by blodorn (2009-07-20 03:00:10)

Thank you, I added this to ~/.fonts.conf and everything is great now.
<match target="font">
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
</match>

Similar Messages

  • 5230: how to disable all automatic calling (intern...

    Another problem with my new 5230: I have a pre-paid card (Pay and Go, Proximus, Belgium).
    I left my phone standby (and ... the battery still doesn't last 1 day, see other post) all day.
    I checked the amount of pre-paid credit I had in the morning.
    I checked again a few hours later (and I did not use the phone): credit is decreased !
    Checked again a few hours later: credit still decreases. this is becoming very expensive (few Euro's a day) so here are my questions:
    -anyone any idea what can cause this?
    -anyone any idea how I can find out what causes this when no-one knows?    ;-)
    -how can I disable ALL possible "auto-connections" ?
    Thanks in advance.

    Hello!
    I have the 5230 NAM version unlocked on AT&T. When I first got my device after I would run Nokia Email Program the internet connection would remain active no matter what until I rebooted the device. This issue was resolved after upgrading to the newest version of Nokia Email.
    My advice run any updates to your firmware and software. (pertaining to nokia messaging or email).
    Make sure that even if you are closing Nokia email you select - GO OFFLINE option as well.
    Best Wishes From The USA!
    JM

  • How to disable all ssl checking - sec_error_ca_cert_invalid

    Is it possible to disable all SSL checking of any kind within firefox?
    I'm stuck with this error. (copied from another post) https://support.cdn.mozilla.net/media/uploads/images/2014-08-04-14-05-02-bc62ea.png
    I have already set mozillapkix to false. I do not want to have to import self-signed certs for all my servers into firefox. I also deal with 'broken ssl', like incomplete certificate chains, etc.. on load balancers, or other odd devices.
    I had a version of nightly that was working with mozillapkix set to false, but it looks like it auto-updated:( so it is at 33.0.2 now, and no longer likes my self-signed certs again. (Which reminds me I need to turn off auto-update if possible).
    If there is no way to completely disable ssl checking in Firefox, is there a nightly build version, or prior build version (I forget what version this new ssl checking began), that I can use that will avoid this stringent ssl checking (why there is no 'add exception' is still confusing...)?

    If this is a major headache, you can use the Extended Support Release version of Firefox 31. I believe the preference to disable use of PKIX still works in that version. You could test with the "Portable Apps" build first before switching.
    More info on ESR: http://www.mozilla.org/firefox/organizations/
    Portable build (unofficial) for testing: http://portableapps.com/apps/internet/firefox-portable-esr (uses its own local profile, exit your normal Firefox first)

  • How to disable  all constraints on a table

    Hi ,
    I want to disable all constraints on a table
    select 'ALTER TABLE '||substr(c.table_name,1,35)||
    ' DISABLE CONSTRAINT '||constraint_name||' ;'
    from user_constraints c
    where c.table_name = MY_table;
    thanks in advance

    What is wrong with query you have?
    Why do you have substr around the table name?
    If you want to execute the output as well, do this,
    SET SERVEROUT ON
    BEGIN
       FOR i IN (SELECT 'ALTER TABLE ' || c.table_name || ' DISABLE CONSTRAINT ' || constraint_name AS l_sql, table_name, constraint_name
                   FROM user_constraints c
                  WHERE c.table_name = my_table_name)
       LOOP
          EXECUTE IMMEDIATE i.l_sql;
          DBMS_OUTPUT.PUT_LINE ('Disabled constraint ' || i.constraint_name || ' on table ' || i.table_name);
       END LOOP;
    END;
    /

  • How to disable all Constraints for a Table

    Hi There,
    So I have a table that I need to delete a significant amount of records from. Using some advice I found it better to select the records that I wanted to keep into a temporary table and then truncate the original table. After that I insert the contents of the temp table into the original table.
    So now I am thinking I could speed this up even more if I disable all the constraints on the original table.
    Is there an easy way to do this or do I need to disable each constraint individually?
    thanks
    John

    http://forums.oracle.com/forums/search.jspa?threadID=&q=disable+all+constraints+&objID=c84&dateRange=all&userID=&numResults=15

  • [SOLVED] How to disable built-in speaker when I use the jack port ?

    Hi,
    I own an Asus X52F-SX053V laptop which has built-in Altec Lancing speaker.
    Here is my problem: When I plug my external speaker, or my headphones in the Jack port; I hear the sound through the device plugged in, AND through the built-in speaker.
    I'd like to disable the built-in speaker when I'm using an external speaker/headphones.
    I currently don't know how to do that, I guess it is possible
    I can copy the output of all the commands needed.
    Thanks
    Last edited by Lowra (2010-12-28 23:17:28)

    [SOLVED] When I plug something in the jack port, built-in speakers are automatically disabled.
    Here is the trick:
    sudo nano /etc/modprobe.d/alsa-base.conf
    Add the following line:
    options snd-hda-intel model=hp-laptop
    Restart Alsa, or reboot your computer
    Have Fun !
    Note: I guess it should work with other Asus computer (A52F, X52F series) and even maybe with other computers which use the following chipset: Intel IbexPeak HDMI

  • [SOLVED]How to disable USB autosuspend?

    Hello!
    A long time ago I installed Arch on my notebook and configured it's power saving using laptop-mode-tools. I also installed pm-utils for suspend/hibernate. USB autosuspend worked correctly - on battery every device (including mouse) was suspending and no autosuspend at all on AC. Some time ago, I don't remember when exactly, it stopped working. Now, no matter what, my mouse turns off after 2 seconds.
    Here is what I did:
    1. Checked my laptop-mode-tools configuration (removed comments for brevity):
    cat /etc/laptop-mode/conf.d/usb-autosuspend.conf
    DEBUG=0
    CONTROL_USB_AUTOSUSPEND="auto"
    AUTOSUSPEND_USE_WHITELIST=0
    AUTOSUSPEND_USBID_BLACKLIST=""
    AUTOSUSPEND_USBTYPE_BLACKLIST=""
    AUTOSUSPEND_USBID_WHITELIST=""
    AUTOSUSPEND_USBTYPE_WHITELIST=""
    BATT_SUSPEND_USB=1
    LM_AC_SUSPEND_USB=0
    NOLM_AC_SUSPEND_USB=0
    AUTOSUSPEND_TIMEOUT=2
    So far looks good.
    2. According to wiki, pm-utils might conflict with laptop-mode-tools. So I created a dummy file in /etc/pm/power.d for each of the scripts from /usr/lib/pm-utils/power.d . For the moment I don't care if I disabled too much. I just hope laptop-mode-tools covers all powersaving features.
    ls -l /etc/pm/power.d
    -rw-r--r-- 1 root root 0 08-08 19:58 hal-cd-polling
    -rw-r--r-- 1 root root 0 08-08 19:58 intel-audio-powersave
    -rw-r--r-- 1 root root 0 08-08 19:58 journal-commit
    -rw-r--r-- 1 root root 0 08-08 19:36 laptop-mode
    -rw-r--r-- 1 root root 0 08-08 19:58 readahead
    -rw-r--r-- 1 root root 0 08-08 19:58 sata_alpm
    -rw-r--r-- 1 root root 0 08-08 19:58 sched_powersave
    -rw-r--r-- 1 root root 0 08-08 19:58 wireless
    -rw-r--r-- 1 root root 0 08-08 19:59 xfs_buffer
    ls -l /usr/lib/pm-utils/power.d
    -rwxr-xr-x 1 root root 1316 2013-05-30 hal-cd-polling*
    -rwxr-xr-x 1 root root 870 2013-05-30 intel-audio-powersave*
    -rwxr-xr-x 1 root root 1290 2013-05-30 journal-commit*
    -rwxr-xr-x 1 root root 2722 2013-05-30 laptop-mode*
    -rwxr-xr-x 1 root root 201 2013-05-30 pcie_aspm*
    -rwxr-xr-x 1 root root 1222 2013-05-30 readahead*
    -rwxr-xr-x 1 root root 1131 2013-05-30 sata_alpm*
    -rwxr-xr-x 1 root root 652 2013-05-30 sched-powersave*
    -rwxr-xr-x 1 root root 2495 2013-05-30 wireless*
    -rwxr-xr-x 1 root root 1642 2013-05-30 xfs_buffer*
    Still no luck.
    3. As I found out, there is some kernel option CONFIG_PM_RUNTIME, which allows the kernel to autosuspend usb devices: source. It's on:
    cat /proc/config.gz| gunzip | grep CONFIG_USB_SU
    CONFIG_USB_SUPPORT=y
    And as I read here I can disable usb autosuspend using boot parameter. So i edited my /etc/default.grub, and now my grub.cfg looks like this:
    sudo cat /boot/grub/grub.cfg | grep usb
    linux /boot/vmlinuz-linux root=UUID=d18cd4a4-2ebf-4874-80ff-8520016b0ed4 rw quiet usbcore.autosuspend=-1
    linux /boot/vmlinuz-linux root=UUID=d18cd4a4-2ebf-4874-80ff-8520016b0ed4 rw quiet usbcore.autosuspend=-1
    linux /boot/vmlinuz-linux root=UUID=d18cd4a4-2ebf-4874-80ff-8520016b0ed4 rw quiet usbcore.autosuspend=-1
    After rebooting I checked:
    cat /sys/module/usbcore/parameters/autosuspend
    -1
    Cool! It should work! But... it doesn't. The mouse still goes to sleep after 2 seconds, and:
    kolzi@kolzi-laptop ~ % for i in /sys/bus/usb/devices/*/power/autosuspend_delay_ms; do cat $i;done
    2000
    2000
    2000
    2000
    2000
    2000
    2000
    2000
    2000
    kolzi@kolzi-laptop ~ % for i in /sys/bus/usb/devices/*/power/autosuspend; do cat $i;done
    2
    2
    2
    2
    2
    2
    2
    2
    2
    Where doesn't this 2 (or 2000) come from? How disable this suspending and let laptop-mode-tools control it? What's going on?
    Last edited by PL_kolek (2014-08-09 13:14:23)

    For now I run
    sudo systemctl disable laptop-mode.service
    and changed in /etc/laptop-mode/laptop-mode.conf
    ENABLE_LAPTOP_MODE_TOOLS=0
    After rebooting I still have the same issues. Also, even after disabling laptop-mode-tools, the brightness changes after unplugging the laptop, so either the laptop mode wasn't disabled at all, or there is something else 'helping' me with powersaving.
    @brebs
    Thank you, but it looks for me more like a workaround than a solution. It could work, but it doesn't tell me what disables my mouse and where is the root of the problem.
    Last edited by PL_kolek (2014-08-09 12:39:39)

  • [SOLVED] How to disable "No mail." message upon login?

    This one's really stumping me. I disable the mail message a few months ago by creating a .hushlogin file in my home directory. That did the trick. Now, I am seeing the message again, and I don't know why. .hushlogin still exists in my home directory. Here's my /etc/login.defs:
    # /etc/login.defs - Configuration control definitions for the login package.
    # Three items must be defined: MAIL_DIR, ENV_SUPATH, and ENV_PATH.
    # If unspecified, some arbitrary (and possibly incorrect) value will
    # be assumed. All other items are optional - if not specified then
    # the described action or option will be inhibited.
    # Comment lines (lines beginning with "#") and blank lines are ignored.
    # Modified for Linux. --marekm
    # Delay in seconds before being allowed another attempt after a login failure
    FAIL_DELAY 3
    # Enable display of unknown usernames when login failures are recorded.
    LOG_UNKFAIL_ENAB no
    # Enable logging of successful logins
    LOG_OK_LOGINS no
    # Enable "syslog" logging of su activity - in addition to sulog file logging.
    # SYSLOG_SG_ENAB does the same for newgrp and sg.
    SYSLOG_SU_ENAB yes
    SYSLOG_SG_ENAB yes
    # If defined, either full pathname of a file containing device names or
    # a ":" delimited list of device names. Root logins will be allowed only
    # upon these devices.
    CONSOLE /etc/securetty
    #CONSOLE console:tty01:tty02:tty03:tty04
    # If defined, all su activity is logged to this file.
    #SULOG_FILE /var/log/sulog
    # If defined, file which maps tty line to TERM environment parameter.
    # Each line of the file is in a format something like "vt100 tty01".
    #TTYTYPE_FILE /etc/ttytype
    # If defined, the command name to display when running "su -". For
    # example, if this is defined as "su" then a "ps" will display the
    # command is "-su". If not defined, then "ps" would display the
    # name of the shell actually being run, e.g. something like "-sh".
    SU_NAME su
    # *REQUIRED*
    # Directory where mailboxes reside, _or_ name of file, relative to the
    # home directory. If you _do_ define both, MAIL_DIR takes precedence.
    # QMAIL_DIR is for Qmail
    #QMAIL_DIR Maildir
    MAIL_DIR /var/spool/mail
    # If defined, file which inhibits all the usual chatter during the login
    # sequence. If a full pathname, then hushed mode will be enabled if the
    # user's name or shell are found in the file. If not a full pathname, then
    # hushed mode will be enabled if the file exists in the user's home directory.
    HUSHLOGIN_FILE .hushlogin
    #HUSHLOGIN_FILE /etc/hushlogins
    # *REQUIRED* The default PATH settings, for superuser and normal users.
    # (they are minimal, add the rest in the shell startup files)
    ENV_SUPATH PATH=/sbin:/bin:/usr/sbin:/usr/bin
    ENV_PATH PATH=/bin:/usr/bin
    # Terminal permissions
    # TTYGROUP Login tty will be assigned this group ownership.
    # TTYPERM Login tty will be set to this permission.
    # If you have a "write" program which is "setgid" to a special group
    # which owns the terminals, define TTYGROUP to the group number and
    # TTYPERM to 0620. Otherwise leave TTYGROUP commented out and assign
    # TTYPERM to either 622 or 600.
    TTYGROUP tty
    TTYPERM 0600
    # Login configuration initializations:
    # ERASECHAR Terminal ERASE character ('\010' = backspace).
    # KILLCHAR Terminal KILL character ('\025' = CTRL/U).
    # UMASK Default "umask" value.
    # The ERASECHAR and KILLCHAR are used only on System V machines.
    # The ULIMIT is used only if the system supports it.
    # (now it works with setrlimit too; ulimit is in 512-byte units)
    # Prefix these values with "0" to get octal, "0x" to get hexadecimal.
    ERASECHAR 0177
    KILLCHAR 025
    UMASK 077
    # Password aging controls:
    # PASS_MAX_DAYS Maximum number of days a password may be used.
    # PASS_MIN_DAYS Minimum number of days allowed between password changes.
    # PASS_WARN_AGE Number of days warning given before a password expires.
    PASS_MAX_DAYS 99999
    PASS_MIN_DAYS 0
    PASS_WARN_AGE 7
    # Min/max values for automatic uid selection in useradd
    UID_MIN 1000
    UID_MAX 60000
    # System accounts
    SYS_UID_MIN 500
    SYS_UID_MAX 999
    # Min/max values for automatic gid selection in groupadd
    GID_MIN 1000
    GID_MAX 60000
    # System accounts
    SYS_GID_MIN 500
    SYS_GID_MAX 999
    # Max number of login retries if password is bad
    LOGIN_RETRIES 5
    # Max time in seconds for login
    LOGIN_TIMEOUT 60
    # Which fields may be changed by regular users using chfn - use
    # any combination of letters "frwh" (full name, room number, work
    # phone, home phone). If not defined, no changes are allowed.
    # For backward compatibility, "yes" = "rwh" and "no" = "frwh".
    CHFN_RESTRICT rwh
    # List of groups to add to the user's supplementary group set
    # when logging in on the console (as determined by the CONSOLE
    # setting). Default is none.
    # Use with caution - it is possible for users to gain permanent
    # access to these groups, even when not logged in on the console.
    # How to do it is left as an exercise for the reader...
    #CONSOLE_GROUPS floppy:audio:cdrom
    # Should login be allowed if we can't cd to the home directory?
    # Default in no.
    DEFAULT_HOME yes
    # If defined, this command is run when removing a user.
    # It should remove any at/cron/print jobs etc. owned by
    # the user to be removed (passed as the first argument).
    #USERDEL_CMD /usr/sbin/userdel_local
    # Enable setting of the umask group bits to be the same as owner bits
    # (examples: 022 -> 002, 077 -> 007) for non-root users, if the uid is
    # the same as gid, and username is the same as the primary group name.
    # This also enables userdel to remove user groups if no members exist.
    USERGROUPS_ENAB yes
    Please help.
    Last edited by nbtrap (2012-07-14 21:59:46)

    orbisvicis wrote:see "pam_mail.so" in /etc/pam.d/* and "man pam_mail". You most likely need the nopen argument.
    Thank you. I fixed it by changing a line in /etc/pam.d/system-login. Specifically, I changed
    session optional pam_mail.so dir=/var/spool/mail standard
    to
    session optional pam_mail.so dir=/var/spool/mail nopen

  • How to disable all fields of a page on button click

    Hello, I am using JDeveloper 11.1.2.3.0
    I have a page with several fields on it. I want to have all the page fields disabled when I click a certain Button. How can I achieve this?
    If what I am asking is too difficult to achieve can you help me with an idea on how to achieve something similar?
    Thank you

    This can be achieved by using JavaScript Client API get the id's all the fields while clicking the button  and disable your Components,
    Calling Backing bean method or binded component involves server side round-trip, you can easily achieve this using simple java script in
    Client Side..
    Call this method in your Client Listener ..
    function disableFields(actionEvent) {
            var field1= AdfPage.PAGE.findComponent("field1id");
            var field2 = AdfPage.PAGE.findComponent("field2id");
            field1.setDisabled(true);
            fileld2.setDisabled(true);

  • [Solved] How to disable vim filetype indentation.

    Hello. I want to start using vim, but there is only that problem with that. In gedit I always use tabs 4 spaces wide for indentation, and I want to do something similar in vim. So in my .vimrc I used tabstop=4 and set autoindent. If I write a plain text file, it works correctly, for example, if I press tab in a new line, and the press enter, the following lines preserve the tab as indentation.
    The problem starts when writing code in common lisp or python. In lisp tab is replaced by two spaces and does some weird things, and in python tab is replaced by 4 spaces. I tried including "filetype indent off" in my vimrc, or writing ":filetype indent off" directly in console, but that doesn't have any effect. The only thing that somewhat works is to disable autodinent, but then I have to manually indent every line. What can I do?
    Last edited by Serge2702 (2014-11-06 20:57:54)

    I keep a skeleton vimrc file to use when I have a question similar to Serge2702's.  My barebones.vim:
    set nocompatible
    filetype plugin on
    set t_co=256 " Optional, you may comment this out.
    syntax on
    Start vim, using the alternate vimrc file with the command, say, for a lisp file: vim -u barebones.vim file_to_edit.lisp.
    Seems most filetypes default to a tab with a width of eight spaces here.  To see the tabs, you can use these two commands from within vim:
    :set list
    :set listchars=tab:_T
    Then you can try all the different setting combinations to figure out a comfortable tab width.
    And there are quite a few settings that affect the width of tabs and indentation besides tabstop. There's autoindent to repeat the previous line's indentation, but this is modified if you use cindent or smartindent to set the indent according to syntax. Then there are the expandtab and smarttab settings to use spaces for tabs, and shiftwidth and softtabstop also set indentation width. I don't see why anyone has trouble figuring it out.;)

  • [SOLVED] How to disable these messages at boot?

    So I managed to install Arch, and set up the network. I have a Broadcom 4313 wireless chip, all I had to do is blacklist the bcma module, because it conflicted with the brcmsmac module, both are loaded by default (no need to add anything to MODULES=(), only the blacklist bcma entry to modprobe.conf)
    So now I have a wlan0 interface that works perfectly fine, only I get these status messages during boot, that are totally unnecessary, see screenshot. These just pop up from nowhere, and annoy the heck out of me, disrupting the login and whatnot.
    So can these be turned off somehow? I suspect they come from the brcmsmac module itself.
    http://dl.dropbox.com/u/20678367/arch-n … ssages.png
    Mod edit:
    The image is too large: https://wiki.archlinux.org/index.php/Fo … s_and_Code
    Last edited by bernarcher (2011-10-18 19:16:57)

    junkie wrote:
    Gusar wrote:Add "dmesg -n 3" to /etc/rc.local
    That seems to solve my problem, thank you!
    Just out of curiosity, what numbers, or levels are available for the -n switch? The man doesn't state that.
    http://mailman.archlinux.org/pipermail/ … 21114.html
    https://bbs.archlinux.de/viewtopic.php?pid=267954 (it's from the German Arch forum, but the loglevel= stuff is in English)
    Full list: http://www.kernel.org/doc/Documentation … meters.txt
    Last edited by karol (2011-10-18 14:02:47)

  • [solved] How to restart all services with systemd?

    I had the habit of restarting all daemons after an upgrade so to make sure the newest libraries, configuration files etc were loaded. I did that with a shell script that restarted the daemons in order which they were listed in rc.conf. With systemd I could do something similar by first getting a list of running services and ordering a 'systemcrl restart  <servicename>' for each. But since systemd keeps track of dependencies I wonder if that would be the way to do it. Also I would need to filter out 'one shot' type services that are only needed on bootup.
    <edit>restart instead of reload</edit>
    <edit>solved it with a little script</edit>
    Last edited by rwd (2012-11-27 21:02:02)

    I think that's what systemctl snapshot does.
    snapshot [NAME]
               Create a snapshot. If a snapshot name is specified, the new snapshot will be named after it. If none is specified an automatic snapshot name is generated. In either case, the snapshot name used is printed to STDOUT, unless --quiet is specified.
               A snapshot refers to a saved state of the systemd manager. It is implemented itself as a unit that is generated dynamically with this command and has dependencies on all units active at the time. At a later time the user may return to this state by using the isolate command on the snapshot unit.
               Snapshots are only useful for saving and restoring which units are running or are stopped, they do not save/restore any other state. Snapshots are dynamic and lost on reboot.
    Then, isolate emergency.target or rescue target and switch to the snapshot.

  • HOW TO DISABLE ALL BUT ONE CHECKBOX IN ALV BASED ON ITEM LEVEL

    Hi All,
    I have a report that has output format in ALV , first column is a Checkbox and second in agreement number . the data is displayed on item level , now my requirement is check box must be displayed in front of only first line item per agreement number and should not be displayed infront of any other ,
    rewadard points are waiting.....for correct answer...

    The same thing can be done using Object Oriented ALV.
    Following are the steps...
    1. HANDLE_STYLE TYPE LVC_T_STYL.
    DECLARE work area,and table
    2.  DATA: LS_EDIT TYPE LVC_S_STYL,
            LT_EDIT TYPE LVC_T_STYL.
    changing the style...
    3.
    LOOP AT IT_FINAL INTO LS_OUTTAB WHERE FLAG = 'X'.
        V_INDEX = SY-TABIX.
        LS_EDIT-FIELDNAME = 'MATNR'.
        LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENABLED.
        LS_EDIT-STYLE2 = SPACE.
        LS_EDIT-STYLE3 = SPACE.
        LS_EDIT-STYLE4 = SPACE.
        LS_EDIT-MAXLEN = 8.
        INSERT LS_EDIT INTO TABLE LT_EDIT.
        LS_EDIT-FIELDNAME = 'VBELN'.
        LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENAABLED.
        LS_EDIT-STYLE2 = SPACE.
        LS_EDIT-STYLE3 = SPACE.
        LS_EDIT-STYLE4 = SPACE.
        LS_EDIT-MAXLEN = 8.
        INSERT LS_EDIT INTO TABLE LT_EDIT.
        LS_EDIT-FIELDNAME = 'POSNR'.
        LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENABLED.
        LS_EDIT-STYLE2 = SPACE.
        LS_EDIT-STYLE3 = SPACE.
        LS_EDIT-STYLE4 = SPACE.
        LS_EDIT-MAXLEN = 8.
        INSERT LS_EDIT INTO TABLE LT_EDIT.
        INSERT LINES OF LT_EDIT INTO TABLE LS_OUTTAB-HANDLE_STYLE.
        MODIFY IT_FINAL INDEX V_INDEX FROM LS_OUTTAB  TRANSPORTING
                                          HANDLE_STYLE .
      ENDLOOP.
    assigning the style to Layout..
    4.   GS_LAYOUT-STYLEFNAME = 'HANDLE_STYLE'.
    Check the sample code..
    create a screen 100, place a control on that and name it as TEST. and also activate the pf-status.
    REPORT  ZTEST1234    MESSAGE-ID ZZ                           .
    DATA: G_GRID TYPE REF TO CL_GUI_ALV_GRID. 
    DATA: L_VALID TYPE C,
          V_FLAG,
          V_DATA_CHANGE,
          V_ROW TYPE LVC_S_ROW,
          V_COLUMN TYPE LVC_S_COL,
          V_ROW_NUM TYPE LVC_S_ROID.
    DATA: OK_CODE LIKE SY-UCOMM,
          SAVE_OK LIKE SY-UCOMM,
          G_CONTAINER1 TYPE SCRFNAME VALUE 'TEST', "First Container
          GS_LAYOUT TYPE LVC_S_LAYO.
    DATA:BEGIN OF  ITAB OCCURS 0,
         VBELN LIKE LIKP-VBELN,
         POSNR LIKE LIPS-POSNR,
         LFDAT like lips-vfdat,
         BOX(1),
         HANDLE_STYLE TYPE LVC_T_STYL,
         END OF ITAB.
    *       CLASS lcl_event_handler DEFINITION
    CLASS LCL_EVENT_HANDLER DEFINITION .
      PUBLIC SECTION .
        METHODS:
    **Hot spot Handler
        HANDLE_HOTSPOT_CLICK FOR EVENT HOTSPOT_CLICK OF CL_GUI_ALV_GRID
                          IMPORTING E_ROW_ID E_COLUMN_ID ES_ROW_NO,
    **Handler to Check the Data Change
        HANDLE_DATA_CHANGED FOR EVENT DATA_CHANGED
                             OF CL_GUI_ALV_GRID
                             IMPORTING ER_DATA_CHANGED
                                       E_ONF4
                                       E_ONF4_BEFORE
                                       E_ONF4_AFTER,
    **Double Click Handler
        HANDLE_DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
                                         IMPORTING E_ROW E_COLUMN ES_ROW_NO.
    ENDCLASS.                    "lcl_event_handler DEFINITION
    *       CLASS lcl_event_handler IMPLEMENTATION
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
    *Handle Hotspot Click
      METHOD HANDLE_HOTSPOT_CLICK .
        CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
        V_ROW  = E_ROW_ID.
        V_COLUMN = E_COLUMN_ID.
        V_ROW_NUM = ES_ROW_NO.
        MESSAGE I000 WITH V_ROW 'clicked'.
      ENDMETHOD.                    "lcl_event_handler
    *Handle Double Click
      METHOD  HANDLE_DOUBLE_CLICK.
        CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
        V_ROW  = E_ROW.
        V_COLUMN = E_COLUMN.
        V_ROW_NUM = ES_ROW_NO.
        IF E_COLUMN = 'VBELN'.
          SET PARAMETER ID 'VL' FIELD ITAB-VBELN.
          CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
        ENDIF.
        IF E_COLUMN = 'POSNR'.
          MESSAGE I000 WITH 'Click on POSNR row number '  E_ROW.
          "with this row num you can get the data
        ENDIF.
      ENDMETHOD.                    "handle_double_click
    **Handle Data Change
      METHOD HANDLE_DATA_CHANGED.
        CALL METHOD G_GRID->REFRESH_TABLE_DISPLAY
          EXCEPTIONS
            FINISHED = 1
            OTHERS   = 2.
        IF SY-SUBRC NE 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDMETHOD.                    "HANDLE_DATA_CHANGED
    ENDCLASS.                    "LCL_EVENT_HANDLER IMPLEMENTATION
    *&             Global Definitions
    DATA:      G_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,"Container
                G_HANDLER TYPE REF TO LCL_EVENT_HANDLER. "handler
    *- Fieldcatalog for First and second Report
    DATA: IT_FIELDCAT  TYPE  LVC_T_FCAT,
          X_FIELDCAT TYPE LVC_S_FCAT,
          LS_VARI  TYPE DISVARIANT.
    *                START-OF_SELECTION
    START-OF-SELECTION.
      SELECT VBELN
             POSNR
             FROM LIPS
             UP TO 20 ROWS
             INTO CORRESPONDING FIELDS OF TABLE ITAB.
    END-OF-SELECTION.
      IF NOT ITAB[] IS INITIAL.
        CALL SCREEN 100.
      ELSE.
        MESSAGE I002 WITH 'NO DATA FOR THE SELECTION'(004).
      ENDIF.
    *&      Form  CREATE_AND_INIT_ALV
    *       text
    FORM CREATE_AND_INIT_ALV .
      DATA: LT_EXCLUDE TYPE UI_FUNCTIONS.
      CREATE OBJECT G_CUSTOM_CONTAINER
             EXPORTING CONTAINER_NAME = G_CONTAINER1.
      CREATE OBJECT G_GRID
             EXPORTING I_PARENT = G_CUSTOM_CONTAINER.
    * Set a titlebar for the grid control
      CLEAR GS_LAYOUT.
      GS_LAYOUT-GRID_TITLE = TEXT-003.
      GS_LAYOUT-ZEBRA = SPACE.
      GS_LAYOUT-CWIDTH_OPT = 'X'.
      GS_LAYOUT-NO_ROWMARK = 'X'.
      GS_LAYOUT-BOX_FNAME = 'BOX'.
      GS_LAYOUT-STYLEFNAME = 'HANDLE_STYLE'.
      CALL METHOD G_GRID->REGISTER_EDIT_EVENT
        EXPORTING
          I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.
      CREATE OBJECT G_HANDLER.
      SET HANDLER G_HANDLER->HANDLE_DOUBLE_CLICK FOR G_GRID.
    *  SET HANDLER G_HANDLER->HANDLE_HOTSPOT_CLICK FOR G_GRID.
      SET HANDLER G_HANDLER->HANDLE_DATA_CHANGED FOR G_GRID.
    data: ls_outatb like line of itab,
          v_index type sy-tabix.
    DATA: LS_EDIT TYPE LVC_S_STYL,
            LT_EDIT TYPE LVC_T_STYL.
    LOOP AT ITAB INTO ls_outatb WHERE POSNR = '000010'.
        V_INDEX = SY-TABIX.
        LS_EDIT-FIELDNAME = 'VBELN'.
        LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
        LS_EDIT-STYLE2 = SPACE.
        LS_EDIT-STYLE3 = SPACE.
        LS_EDIT-STYLE4 = SPACE.
        LS_EDIT-MAXLEN = 8.
        INSERT LS_EDIT INTO TABLE LT_EDIT.
        INSERT LINES OF LT_EDIT INTO TABLE ls_outatb-handle_style.
        MODIFY ITAB INDEX V_INDEX FROM ls_outatb  TRANSPORTING
                                          HANDLE_STYLE.
      ENDLOOP.
    * setting focus for created grid control
      CALL METHOD CL_GUI_CONTROL=>SET_FOCUS
        EXPORTING
          CONTROL = G_GRID.
    * Build fieldcat and set editable for date and reason code
    * edit enabled. Assign a handle for the dropdown listbox.
      PERFORM BUILD_FIELDCAT.
    * Optionally restrict generic functions to 'change only'.
    *   (The user shall not be able to add new lines).
      PERFORM EXCLUDE_TB_FUNCTIONS CHANGING LT_EXCLUDE.
    **Vaiant to save the layout
      LS_VARI-REPORT      = SY-REPID.
      LS_VARI-HANDLE      = SPACE.
      LS_VARI-LOG_GROUP   = SPACE.
      LS_VARI-USERNAME    = SPACE.
      LS_VARI-VARIANT     = SPACE.
      LS_VARI-TEXT        = SPACE.
      LS_VARI-DEPENDVARS  = SPACE.
      CALL METHOD G_GRID->REGISTER_EDIT_EVENT
        EXPORTING
          I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.
    **Calling the Method for ALV output for First Grid
      CALL METHOD G_GRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
          IT_TOOLBAR_EXCLUDING = LT_EXCLUDE
          IS_VARIANT           = LS_VARI
          IS_LAYOUT            = GS_LAYOUT
          I_SAVE               = 'A'
        CHANGING
          IT_FIELDCATALOG      = IT_FIELDCAT
          IT_OUTTAB            = ITAB[].
    * Set editable cells to ready for input initially
      CALL METHOD G_GRID->SET_READY_FOR_INPUT
        EXPORTING
          I_READY_FOR_INPUT = 1.
    ENDFORM.                               "CREATE_AND_INIT_ALV
    *&      Form  EXCLUDE_TB_FUNCTIONS
    *       text
    *      -->PT_EXCLUDE text
    FORM EXCLUDE_TB_FUNCTIONS CHANGING PT_EXCLUDE TYPE UI_FUNCTIONS.
    * Only allow to change data not to create new entries (exclude
    * generic functions).
      DATA LS_EXCLUDE TYPE UI_FUNC.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_DELETE_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_APPEND_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_INSERT_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_MOVE_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_CUT.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE_NEW_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_UNDO.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
    ENDFORM.                               " EXCLUDE_TB_FUNCTIONS
    *&      Form  build_fieldcat
    *       Fieldcatalog
    FORM BUILD_FIELDCAT .
      DATA: L_POS TYPE I.
      L_POS = L_POS + 1.
      X_FIELDCAT-SCRTEXT_M = 'Delivery'(024).
      X_FIELDCAT-FIELDNAME = 'VBELN'.
      X_FIELDCAT-TABNAME = 'ITAB'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-NO_ZERO    = 'X'.
      X_FIELDCAT-EDIT      = 'X'.
      X_FIELDCAT-OUTPUTLEN = '10'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
      L_POS = L_POS + 1.
      X_FIELDCAT-SCRTEXT_M = 'Item'(025).
      X_FIELDCAT-FIELDNAME = 'POSNR'.
      X_FIELDCAT-TABNAME = 'ITAB'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-OUTPUTLEN = '5'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
        L_POS = L_POS + 1.
        X_FIELDCAT-SCRTEXT_M = 'Del Date'(015).
      X_FIELDCAT-FIELDNAME = 'LFDAT'.
      X_FIELDCAT-TABNAME = 'ITAB'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-OUTPUTLEN = '10'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
      L_POS = L_POS + 1.
    ENDFORM.                    " build_fieldcat
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'MAIN100'.
      SET TITLEBAR 'MAIN100'.
      IF G_CUSTOM_CONTAINER IS INITIAL.
    **Initializing the grid and calling the fm to Display the O/P
        PERFORM CREATE_AND_INIT_ALV.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT

  • [SOLVED] how to disable loading of certain modules?

    After the system has booted, i do "lsmod" and see all kinds of modules i don't need, i.e. xfs, jfs, all kinds or raid and scsi stuff. I'm sure they kan be removed since "rmmod" can remove them.
    I tried to add those to MOD_BLACKLIST in /etc/rc.conf but it didn't help. Where is the correct place to put modules whihch must not be loaded?
    This way boot time and memory usage both can be improved.. Or am i wrong here?

    mpie wrote:those are from your initrd, follow the wiki guide to recompiling your own, if you want to omit some modules
    Thanks a lot, exactly what i needed! 
    http://wiki.archlinux.org/index.php/Initrd

  • [Solved] How to disable switching workspaces in XFCE when scrolling?

    As the title says, I want to disable switching workspaces when scrolling with the mouse on the desktop. I disabled the workspace switcher setting "Change workspaces using the mousewheel" but that doesn't change anything. Any ideas?
    Last edited by Terminator (2012-05-15 14:41:53)

    Thanks

Maybe you are looking for